As both Legacy REST API and Facebook Query Language (FQL) will no longer be available after 7th August我基於替代尋找一個API圖V2.6:獲取Facebook的分享,喜歡和評論計數與API圖形V2.6給定的URL
- https://api.facebook.com/method/links.getStats?urls=http://www.imdb.com/title/tt2015381/&format=json
- https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count,commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='http://www.imdb.com/title/tt2015381/'
到目前爲止,這是我目前的V2.6相當於:https://graph.facebook.com/v2.6/?id=YOUR_URL&fields=og_object{engagement},share{share_count}&access_token=YOUR_TOKEN
然而og_object{engagement}
count
和share_count
似乎保持一定的總數,而不是像及股數s(見:https://developers.facebook.com/docs/graph-api/reference/v2.6/url)。
請問任何人都知道如何獲得Facebook共享,像API Graph v2.6給定的URL和評論計數?提前謝謝了!
那麼沒有訪問令牌就沒有辦法像count一樣? – rafamds
如果傳統REST API和FQL現在已正式棄用,則不會。但是,我只需要幾分鐘就可以創建一個新應用程序,以便使用它的訪問令牌 –
我明白了,那就是我所做的。我創建並應用了Graph API並使用了新創建的訪問令牌。 – rafamds