Facebook graph api URL的实时facebook共享计数

Facebook graph api URL的实时facebook共享计数,facebook-graph-api,facebook-rest-api,Facebook Graph Api,Facebook Rest Api,我想获取网站中每个url的实时facebook sharecounts,以便显示它 我找到了两种方法: 使用facebook restserver.php如下所示: 并返回以下内容: <links_getStats_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.faceboo

我想获取网站中每个url的实时facebook sharecounts,以便显示它

我找到了两种方法:

  • 使用facebook restserver.php如下所示:
  • 并返回以下内容:

    <links_getStats_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" list="true">
    <link_stat>
    <url>
    https://www.daltravel.ro/circuit/Circuit-Anglia-Scotia-Irlanda
    </url>
    <normalized_url>
    https://www.daltravel.ro/circuit/Circuit-Anglia-Scotia-Irlanda
    </normalized_url>
    <share_count>0</share_count>
    <like_count>0</like_count>
    <comment_count>0</comment_count>
    <total_count>0</total_count>
    <click_count>0</click_count>
    <comments_fbid>1084234134929324</comments_fbid>
    <commentsbox_count>0</commentsbox_count>
    </link_stat>
    </links_getStats_response>
    
    {
       "og_object": {
          "id": "1084234134929324",
          "description": "Marea Britanie si Irlanda. Marea Britanie spune povestea a trei tari: Anglia, Scotia si Tara Galilor, in care castelele, catedralele pub-uri sunt cu adevarat fermecatoare. In Irlanda va bucurati de peisaje naturale uluitoare, dar si de legende stravechi.",
          "title": "Dal Travel - agentia devoratorilor de turism",
          "type": "website",
          "updated_time": "2016-01-10T12:20:56+0000",
          "url": "https://www.daltravel.ro/circuit/Circuit-Anglia-Scotia-Irlanda"
       },
       "share": {
          "comment_count": 0,
          "share_count": 0
       },
       "id": "https://www.daltravel.ro/circuit/Circuit-Anglia-Scotia-Irlanda"
    }
    
    这两种方法都显示0个计数,尽管我已经共享了好几次。使用第二种方法,我还得到了“更新时间”:“2016-01-10T12:20:56+0000”值

    我怎样才能得到最新的信息

    谢谢大家!