【发布时间】:2014-11-19 17:23:15
【问题描述】:
我无法让提要对话框以正确的方式工作,并且在 google 上找不到任何好的解决方案。
这是我的代码:
FB.ui({
method: 'feed',
name: 'The title',
link: 'http://link.com',
picture: 'http://link.com/image.jpg',
caption: 'The caption',
description: 'The description',
redirect_uri: 'http://theapp.com/close-popup.html',
},
function(response) {
if (response && response.post_id)
console.log("Share has been made!");
});
问题: 在共享对话框之后,页面在 URL https://m.facebook.com/v2.2/dialog/feed 上的白色空白页面上停止。我尝试添加 redirect_uri 以重定向到某种关闭页面,但它不起作用。
这里有什么想法吗?
解决方案
FB.ui({
method: 'feed',
display: 'touch' //Works with Chrome iOS/Android, page/popup for desktop
name: 'The title',
link: 'http://link.com',
picture: 'http://link.com/image.jpg',
caption: 'The caption',
description: 'The description',
redirect_uri: 'http://theapp.com/close-popup.html',
},
function(response) {
if (response && response.post_id)
console.log("Share has been made!");
});
【问题讨论】:
-
您好,您最终解决了吗?
-
@EyadAlama 终于是的。看我的回答。
标签: javascript facebook facebook-graph-api user-interface