Facebook 'Like' Pages statistics and management

av888

Newbie
Joined
Oct 11, 2009
Messages
21
Reaction score
0
Say you have a like site with over 100,000 pages on the website which have a like button API installed.

Some of these have 100 links, some have 100,000.

There's no real way to rank them via facebook likes. is there anyway you could grab this data, to sort the pages via top liked vs least liked etc.
 
Your Graph URL will return a json object that contains your number of likes as well as other data when called.
Code:
http://graph.facebook.com/http://www.example.com/

I don't know about hitting the fb servers 100,000 times, might be excessive lol, but you can certainly automate the process of grabbing the number of fans/likes..
 
That doesn't seem to be working. Well, it works but does not show the likes. :(
 
hmm it seems to show them with my sites. I don't use it for tracking many individual pages on one of those like sites, rather to track the likes of multiple sites. It still pretty new to me as well, just thought I'd throw it out there :D

I'm pretty sure that had your site been setup a certain way from the beginning, you could have kept a running count of what was liked and how many times it was liked.
 
Yeah It is set up that way, but alot of people will click the little 'like' NEXT to the like on their friends wall. So you never see the visitor anyway and cannot 'track' the 'like'.

If that makes sense. Could you perhaps private me what you are seeing on your site when you use the graph URL?

I'm seeing a share number, and that is it. Which does not correspond with the like count at all.
 
I think its ok just to show you here :)

Code:
{
   "id": "myappid",
   "name": "my title",
   "link": "http://www.myurl.com/",
   "category": "Website",
   "description": "My description blah blah blah",
   "fan_count": 1001
}

is what i get. The 'fan count' is not 100% accurate to what the like button says, but it's very close.
 
Hmm, I get stuff like this:
{
"error": {
"type": "OAuthAccessTokenException",
"message": "An access token is required to request this resource."
}

}

You sure it's the right code. Hmm.
 
Hmm not sure why you need an access token and I do not.

Substitue 'YOUR_APP_ID' and 'YOUR_SECRET_KEY' and try calling:
Code:
https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=YOUR_APP_ID&client_secret=YOUR_SECRET_KEY
to get your token and then try it again I guess.

Sorry, just started playing with it less then a week ago, my knowledge on it is limited.
 
No worries. I don't have an APPID or secret key. Hmm. It's just a website with the facebook like social plugin installed throughout its pages.
 
Ahh ok, I think that explains why you cant access a graph url for you links then. I bet if you had an app properly setup with the proper open graph meta in your pages you could.
 
Back
Top