开发者

FB.Event.subscribe object return

I would like to know what is the structure of the object the function FB.开发者_开发问答Event.subscribe return when i use the following code:

FB.Event.subscribe('comment.create', function(response) {
    alert("Thank you for leaving a comment! :)");
});

thanks in advance :D


You can use

alert (JSON.stringify(response));

to get the full response. That works for any object, actually.


I tend to use console.log(response) to have a look at the object, I find that an alert box is insufficient for large objects. (I use facebook with the firebug extension installed)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜