我的Facebook应用程序不在沙盒中,它的实时。
在分享对话框时,我收到如下空信息:
我的 href 如下:
<a title="send to Facebook"
href="http://www.facebook.com/dialog/feed?
app_id=1440979716022445&
link=http://ariddleaday.com&
picture=http://ariddleaday.com/cat.png&
name=Can%20you%20help%20Jimmy&
caption=A%20Riddle%20A%20Day&
description=Try%20this%20and%20have%20fun&
message=Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?&
redirect_uri=http://ariddleaday.com"
>
<span>
Send this Riddle to Facebook
</span>
</a>
我添加了这个在点击时调用的功能,但我仍然得到相同的输出
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
redirect_uri: 'http://ariddleaday.com',
link: 'https://ariddleaday.com',
picture: 'http://ariddleaday.com/cat.png',
name: 'Riddle of the Day',
caption: 'Can you help Jimmy ?',
description: 'Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Thank you for sharing !";
}
FB.ui(obj, callback);
return false;
}
答案 0 :(得分:1)
在调试器中查看:https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fariddleaday.com
图片遗漏了一些东西:
<meta property="og:image" content=".cat.png" />
不推荐使用Feed对话框的所有参数,您必须在共享网址中使用Open Graph标记:https://developers.facebook.com/docs/sharing/webmasters/
更改日志:https://developers.facebook.com/docs/apps/changelog#v2_9