Facebook Tricks

How to identify how many shares of a particular URL / page in facebook ?

http://graph.facebook.com/?id=http://www.greenecosystem.in/

This shows result as:

{ "id": "http://www.greenecosystem.in/", "shares": 917
}
How to get all information related to likes, comments, shareshttps://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27http://www.greenecosystem.in%27This will show result as,
{ "data": [ { "url": "http://www.greenecosystem.in", "normalized_url": "http://www.greenecosystem.in/", "share_count": 538, "like_count": 349, "comment_count": 30, "total_count": 917, "commentsbox_count": 0, "comments_fbid": "157549931095904", "click_count": 0 } ]
}
How to get all comments done on html page using facebook comment widget ?
Answer : We tried to get all comments from page http://www.greenecosystem.in/fconn/agriculture-infrastructure/soil-testing-kit.html by using below graph API..
https://graph.facebook.com/fql?q=SELECT%20post_fbid,%20fromid,%20object_id,%20text,%20time%20FROM%20comment%20WHERE%20object_id%20IN%20(SELECT%20comments_fbid%20FROM%20link_stat%20WHERE%20url%20=%20%27http://www.greenecosystem.in/fconn/agriculture-infrastructure/soil-testing-kit.html%27)
Reference : Facebook Graph API's , Facebook Query Languagehttp://bobbelderbos.com/2011/07/fql-powerful-way-query-facebook-graph-api/
READ  How to rename part of a filename and replace the string in those files

Leave a Reply

Your email address will not be published. Required fields are marked *