How to get number of likes from facebook like button? -
how number of likes facebook button? there possible way this?
there 2 ways number of facebook likes.
- graph api
http://graph.facebook.com/?ids=http%3a%2f%2ffacebook.com
result json: (for reason 'likes' called 'shares')
{ "http://facebook.com": { "id": "http://facebook.com", "shares": 35641554, "comments": 339 } }
- fql
http://api.facebook.com/method/fql.query?query=select+total_count+from+link_stat+where+url="http://facebook.com"'
result:
<?xml version="1.0" encoding="utf-8"?> <fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" list="true"> <link_stat> <total_count>35641554</total_count> </link_stat> </fql_query_response>
Comments
Post a Comment