English 中文(简体)
Facebook s new fb:comments and FB. 内容提要 不工作
原标题:Facebook s new fb:comments and FB.Event.subscribe comments.create not working

在我尝试一切我认为能够做到,但徒劳无益的时候,任何帮助都将受到高度赞赏。

我正在使用Facebook最新版本(截至上周)fb:comments系统,但无法获得FB。 活动. 提交评论.create和FB.Event. 提交评论.remove to work。

参看here

我是首当其冲的菲克斯·阿萨尼。

<script type="text/javascript">
//<![CDATA[
  window.fbAsyncInit = function() {
    FB.init({appId:  191116444251564 , status: true, cookie: true, xfbml: true});
    FB.Event.subscribe( comments.create , function (response) {
//  console.log( create , response);
  //got response.... now query FQL to return total number of post counts
  FB.api(
    {
      method: "fql.query",
      query: "SELECT count FROM comments_info WHERE xid= 2_plain-basmati-rice---rice-cooker  and app_id= 191116444251564 "
    },
    function(fql_response) {
      $j.post( /recipes/2_plain-basmati-rice---rice-cooker/commented , {count: fql_response[0].count});
    }
  );
});

FB.Event.subscribe( comments.remove , function (response) {
  //got response.... now query FQL to return total number of post counts
//  console.log( remove , response);
  FB.api(
    {
      method: "fql.query",
      query: "SELECT count FROM comments_info WHERE xid= 2_plain-basmati-rice---rice-cooker  and app_id= 191116444251564 "
    },
    function(fql_response) {
      $j.post( /recipes/2_plain-basmati-rice---rice-cooker/commented , {count: fql_response[0].count});
    }
  );
});

  };
  (function() {
    var e = document.createElement( script );
    e.async = true;
    e.src = document.location.protocol +  //connect.facebook.net/en_US/all.js ;
    document.getElementById( fb-root ).appendChild(e);
  }());
//]]>
</script>

用简单的警示(tst)取代两个用户报警。

我用FB的中子对网页进行了测试,没有显示该特定页的错误。

同样,我对任何人的感谢可以提供任何假肢或点击器。

最佳回答

我认为这次活动。 目前,用户很少。 我上周(大约3月8日)曾有类似的守则工作,但今天(3月13日)我注意到这次活动。 用户不是发射。 BTW,我认为现在应该对此发表意见。 提出而不是评论。 创造。 这是我的工作。

问题回答

不可依赖的消息来源说,Facebook s FQL很快将更新,以适应新评论系统的职能...... 我们都在等待。

You read Facebook s documentation? That s a big mistake unfortunately.
Try with comments.add instead of comments.create...

它是评论。 因此,这应当奏效。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签