Facebook 分享对话框给出空信息
Facebook share dialog is giving empty message
我的 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;
}
在调试器中查看:https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fariddleaday.com
图像缺少一些东西:
<meta property="og:image" content=".cat.png" />
提要对话框的所有参数均已弃用,您必须在共享 URL 中使用 Open Graph 标签:https://developers.facebook.com/docs/sharing/webmasters/
变更日志:https://developers.facebook.com/docs/apps/changelog#v2_9
我的 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;
}
在调试器中查看:https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fariddleaday.com
图像缺少一些东西:
<meta property="og:image" content=".cat.png" />
提要对话框的所有参数均已弃用,您必须在共享 URL 中使用 Open Graph 标签:https://developers.facebook.com/docs/sharing/webmasters/
变更日志:https://developers.facebook.com/docs/apps/changelog#v2_9