当用户使用社交插件进行评论时,我正在尝试获得通知。代码如下:
<fb:comments href= someurl width= 400 ></fb:comments>
FB.Event.subscribe( comment.create , function(response)
{
alert(response);
}
很简单,但不起作用。有人可能犯了错误?从我在网上的研究来看,通知似乎没有真正的一致性。有时有效,有时无效。
当用户使用社交插件进行评论时,我正在尝试获得通知。代码如下:
<fb:comments href= someurl width= 400 ></fb:comments>
FB.Event.subscribe( comment.create , function(response)
{
alert(response);
}
很简单,但不起作用。有人可能犯了错误?从我在网上的研究来看,通知似乎没有真正的一致性。有时有效,有时无效。
将notice=“true”
属性添加到fb:comments
标记中。
<fb:comments notify="true" href= someurl width= 400 ></fb:comments>
FB.Event.subscribe( comment.create , function(response)
{
alert(response);
}
为什么不关闭函数调用?
FB.Event.subscribe( comment.create , function(response)
{
alert(response);
});
我也有同样的问题,直到我在这里偶然发现了这个答案:
通过FB.Event.subscribe订阅到comment.create或comment.remove的方法不会被触发
You should put everything related to FB.[...] functions (FB.init, FB.Event.suscribe, ...) in
window.fbAsyncInit = function(){ // Your code });
Otherwise your code will be parsed before the FB js sdk has been fully loaded and you will >never really suscribe to your event
这对很多人来说可能是显而易见的,但对我和其他新手来说,这可能会让你绊倒。
I can view my application via the http://apps.facebook.com/app/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the tab no ...
Our app is displaying its information in a way similar to that found on Facebook s "feed" page which shows a timeline of activity by members of the particular profile s network. I can see that could ...
I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...
I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...
I m going to create a Facebook application which get informations (name and page_url) about Facebook page from his page_id. So i went to the Facebook Wiki and i found this API method which sounds good ...
I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...
I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...
If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...