所以the documentation表明这一点:将什么数据传递给从FB.ui()调用的回调函数?
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
}
}
);
这是伟大的。但是我找不到有关传递给回调函数的那个response
变量中的内容的任何文档。这是记录在任何地方?具体来说,我想要一种方式来检索一个链接“共享”到多少用户。 虽然上面的代码使用“feed”方法,但我使用的是“send”方法。
'的console.log(响应)'? – ceejayoz 2012-08-02 21:12:10