有谁知道如何从 Facebook 分析中获取“喜欢”按钮的使用情况——即,如果我有数千个页面上有“喜欢”按钮,如何查询 Facebook 以查看每个页面有多少喜欢有收到?是否有针对此的 Facebook API 调用?
谢谢!
有谁知道如何从 Facebook 分析中获取“喜欢”按钮的使用情况——即,如果我有数千个页面上有“喜欢”按钮,如何查询 Facebook 以查看每个页面有多少喜欢有收到?是否有针对此的 Facebook API 调用?
谢谢!
It's on their open graph documentation page here under "Programmatically administering your pages".
Just do a GET on "https://graph.facebook.com/?id={URL}"
Example they provide:
https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/
Returns some json:
{
"114324145263104": {
"id": "114324145263104",
"name": "The Rock (1996)",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-sf2p/hs252.snc3/23275_114324145263104_2071_s.jpg",
"link": "http://www.imdb.com/title/tt0117500/",
"category": "Movie",
"fan_count": 328
}
}