Is there an API to force Facebook to scrape a page again?

Page metadata isn’t the sort of thing that should change very often, but you can manually clear the cache by going to Facebook’s Debug Tool and entering the URL you want to scrape There’s also an API for doing this, which works for any OG object: curl -X POST \ -F “id={object-url OR object-id}” \ … Read more

‘Like’ a page using Facebook Graph API

Facebook has announced support for liking URL’s outside of Facebook by using the official built-in Like action. You need to have publish_actions permissions. The graph url for this is: https://graph.facebook.com/[User FB ID]/og.likes?object=OG_OBJECT_URL&access_token=USER_ACCESS_TOKEN However, you cannot use this to like a page on Facebook currently, as the documentation states: For Facebook Pages or websites that do … Read more

How can I move a URL via 301 redirect and retain the page’s Facebook likes and Open Graph information?

Short answer, you can’t. Once the object has been created on Facebook’s side its URL in Facebook’s graph is fixed – the Likes and Comments are associated with that URL and object; you need that URL to be accessible by Facebook’s crawler in order to maintain that object in the future. (note that the object … Read more

How to get share counts using graph API

Here’s a list of API links to get your stats: Facebook: https://api.facebook.com/method/links.getStats?urls=%%URL%%&format=json Reddit:http://buttons.reddit.com/button_info.json?url=%%URL%% LinkedIn: http://www.linkedin.com/countserv/count/share?url=%%URL%%&format=json Digg: http://widgets.digg.com/buttons/count?url=%%URL%% Delicious: http://feeds.delicious.com/v2/json/urlinfo/data?url=%%URL%% StumbleUpon: http://www.stumbleupon.com/services/1.01/badge.getinfo?url=%%URL%% Pinterest: http://widgets.pinterest.com/v1/urls/count.json?source=6&url=%%URL%% Edit: Removed the Twitter endpoint, since that one has been deprecated. Edit: Facebook REST API is deprecated

Facebook API: Get fans of / people who like a page

There is a “way” to get some part of fan list with their profile ids of some fanpage without token. Get id of a fanpage with public graph data: http://graph.facebook.com/cocacola – Coca-Cola has 40796308305. UPDATE 2016.04.30: Facebook now requires access token to get page_id through graph so you can parse fanpage HTML syntax to get … Read more