【发布时间】:2011-05-12 19:27:12
【问题描述】:
我使用以下代码在我刚刚启动的 Facebook 应用中发布到用户墙:
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://localhost:8888/project_images/110/110.png',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
遗憾的是,即使当我在浏览器中输入:http://localhost:8888/project_images/110/110.png 时,图像显示没有问题。此外,当我使用示例中的默认值:http://fbrell.com/f8.jpg 作为图片:参数时,图像显示得很好。由于本地主机,这不起作用吗?我在 MAMP 上运行 localhost。
【问题讨论】:
-
今天发现了同样的问题 - 有什么解决办法吗?
标签: facebook localhost publish mamp