2012-08-02 57 views
1

所以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”方法。

+1

'的console.log(响应)'? – ceejayoz 2012-08-02 21:12:10

回答

0
+0

这是“饲料”的方法。我正在使用“发送”。相同的信息是相关的吗? – emersonthis 2012-08-02 21:52:29

+0

@Emerson:我在你的问题中看到'method','feed',' – zerkms 2012-08-02 22:00:08

+0

它在代码中,因为它是我可以在文档中找到的最接近的例子,但问题的最后一句澄清。 – emersonthis 2012-08-02 22:11:16