English 中文(简体)
Capture analytics from Facebook Open Graph "like" button
原标题:

Does anyone know of how to capture from Facebook analytics around the use of the "like" button--i.e., if I ve got thousands of pages with the Like button on them, how to query Facebook to see how many likes each of them has received? Is there a Facebook API call for this?

Thanks!

问题回答

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
   }
}




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签