feed dialog: picture not showing up

2019-02-21 19:16发布

My Facebook feed dialog link correctly renders a dialog page, but the image set with the picture parameter does not show up -- just the gray line that indicates no picture.

I've changed picture files and types a few times, but the image still doesn't show up.

Here is the code:

$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>");

I've done it with and without a urlencode() for the picture url, and that doesn't make a difference. I've also run it through the Facebook debugger linter.

Is there something we need to change in our php.ini file? Our image files seem to be unavailable to the Facebook platform. Yet, they display on the public web just fine.

Here is the rendered 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/

8条回答
唯我独甜
2楼-- · 2019-02-21 20:03

I had a similar problem with a .png image

I change the image format to .gif and it resolved itself.

查看更多
走好不送
3楼-- · 2019-02-21 20:03

For me what solved this was changing the protocol from https to http and changing the image format from png to jpg

查看更多
登录 后发表回答