Php 发布到流时未显示图像
我正在编写一个PHP应用程序,可以发布到用户的提要。帖子显示在提要中,但我指定的图像没有 应用程序当前处于沙盒模式,所以不确定这是否会产生影响 这是我要传递的数据数组:Php 发布到流时未显示图像,php,facebook,facebook-graph-api,facebook-php-sdk,Php,Facebook,Facebook Graph Api,Facebook Php Sdk,我正在编写一个PHP应用程序,可以发布到用户的提要。帖子显示在提要中,但我指定的图像没有 应用程序当前处于沙盒模式,所以不确定这是否会产生影响 这是我要传递的数据数组: $data = array( 'message' => 'I just donated to ORGANIZATION to help end the needless killing of healthy animals.', 'name' => 'Each day over 10,0
$data = array(
'message' => 'I just donated to ORGANIZATION to help end the needless killing of healthy animals.',
'name' => 'Each day over 10,000 healthy pets are killed. Together we can help change this.',
'caption' => 'petbucks.net',
'link' => 'http://petbucks.net',
'description' => 'Sponsorship of real homeless pets gives them the time they need to find a forever home.',
'picture' => 'http://dev.petbucks.net/img/default-donation.jpg',
'actions' => array(
array(
'name' => 'Visit us',
'link' => 'http://petbucks.net'
)
)
);
Facebook::api('/'.$uid.'/feed', 'post', $data);
正如我所说,post出现在用户的feed中,但是图片没有。如果我检查URL应该在哪里的来源,下面是显示的图像标记:
<img class="shareMediaPhoto fbStoryAttachmentImage img" src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y4/r/-PAXP-deijE.gif" alt="" style="background-image: url(https://fbexternal-a.akamaihd.net/app_full_proxy.php?app=332280520247212&v=1&size=z&cksum=534f379420f4d890f47eebaa5bf15f4a&src=http%3A%2F%2Fdev.petbucks.net%2Fimg%2Fdefault-donation.jpg);">
基于此,我想说它接收到的图片URL很好(你可以在背景图片的源代码中看到真实的URL),所以它一定是其他东西。是因为沙盒模式吗
如果您知道发生了什么,我们将不胜感激
更新
有一些奇怪的DNS问题正在发生,所以这些问题已经被修复。然而,我现在在我的主新闻提要中看到了全尺寸的图像,但在我自己的新闻提要中看不到较小的图像
如果不允许访问我的FB帐户,这将很难演示,但作为一个例子,请看我公开的这篇文章:
当我登录FB时,这张图片对我来说是正确的,但我猜不是对你。它试图显示的URL是:
当它显示时,它引用了此图像:
可能您应该验证您的html页面,如中所述。因为你甚至连网页的URL都刮不掉,这很奇怪。我可以很好地访问该站点,但“刮痧者”看到了一个“欢迎使用nginx”页面。当然,我会先调查一下。