提要对话框:图片未显示 [英] feed dialog: picture not showing up

查看:42
本文介绍了提要对话框:图片未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Facebook 提要对话框链接正确地呈现了一个对话框页面,但使用图片参数设置的图像没有显示 - 只是表示没有图片的灰线.

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.

代码如下:

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

我已经为图片 url 使用和不使用 urlencode() 完成了它,这并没有什么区别.我还通过 Facebook 调试器 linter 运行它.

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.

我们需要在 php.ini 文件中更改什么内容吗?Facebook 平台似乎无法使用我们的图像文件.然而,它们在公共网络上显示得很好.

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.

这是呈现的网址: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/

推荐答案

我在使用 .png 图像时遇到了类似的问题

I had a similar problem with a .png image

我将图像格式更改为 .gif 并自行解决.

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

这篇关于提要对话框:图片未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆