我的Facebook feed dialog链接可以正确地呈现一个对话框页面,但是使用picture参数设置的图片不会显示出来——只有表明没有图片的灰色线条。
我已经多次更换过图片文件和类型,但是图片仍然无法显示。
以下是代码:
$share_url = "https://www.facebook.com/dialog/feed?app_id=$app_id";
$share_url .= "&link=http://www.doozeez.com";
$share_url .= "&picture=http://doozeez.com/images/halloweenloot.png";
$share_url .= "&caption=to spend in the biggest rewards program in the www (whole wide world)";
$share_url .= "&name=doozeez ... get zeez for what you dooz";
$share_url .= "&description=grab your invitation to join me at the front of the line for doozeez launch";
$share_url .= "&redirect_uri=http://www.doozeez.com/";
echo("<script> top.location.href='" . $share_url . "'</script>");
我已经尝试过使用urlencode()和不使用urlencode()来处理图片url,但这并没有区别。我还通过Facebook调试器进行了测试。
我们需要在php.ini文件中做出一些更改吗?我们的图片似乎无法被Facebook平台访问。然而,在公共网络上它们可以正常显示。
以下是渲染后的URL:https://www.facebook.com/dialog/feed?app_id=192590464145496&link=http://www.doozeez.com/&picture=http://doozeez.com/images/halloweenloot.png&caption=to%20spend%20in%20the%20biggest%20rewards%20program%20in%20the%20www%20(whole%20wide%20world)&name=doozeez%20...%20get%20zeez%20for%20what%20you%20dooz&description=grab%20your%20invitation%20to%20join%20me%20at%20the%20front%20of%20the%20line%20for%20doozeez%20launch&redirect_uri=http://www.doozeez.com/。