Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Graph Api url comments and shares count doesn't work anymore
    primarykey
    data
    text
    <p>I'm using the facebook comment plugin for my blog and until now, the facebook graph api helped me to retrieve the comment count of each post on my website. So, as I said, the posts that I've written like a month ago, I can retrieve the comment count using php and json_decode like this:</p> <pre><code>$wsurl = 'http://www.example.com/title-of-the-post/'; $wsjson = json_decode(file_get_contents('https://graph.facebook.com/?ids='.$wsurl)); $cmcount = ($wsjson-&gt;$wsurl-&gt;comments) ? $wsjson-&gt;$wsurl-&gt;comments : 0; </code></pre> <p>Usually, it works cause the "comments" line show up. I don't know why, but now, every new post that I create don't have the "comments" and "shares" line. So, here's what I get from <a href="https://graph.facebook.com/?ids=http://www.example.com/title-of-the-post/" rel="nofollow">https://graph.facebook.com/?ids=http://www.example.com/title-of-the-post/</a></p> <p>Older post:</p> <pre><code>{ "http://www.example.com/title-of-the-post/": { "id": "http://www.example.com/title-of-the-post/", "shares": 6, "comments": 6 } } </code></pre> <p>New post:</p> <pre><code>{ "http://www.example.com/title-of-the-post/": { "url": "http://www.example.com/title-of-the-post/", "type": "website", "title": "Title of the post", "image": [ { "url": "http://www.example.com/thumb.png" } ], "description": "This is a great post about great things.", "updated_time": "2012-12-25T17:57:03+0000", "id": "66666666666666" } } </code></pre> <p>The "comments" line doesn't show up anymore and I have more information now (some information that I don't care). So, what happened? I didn't change my code at all! By the way, my comment box is still working and display all the comments (And my like button display the "shares" count correctly). Can somebody help me?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload