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

Using “share_open_graph” Facebook UI to create dynamic share dialog for quiz results

I have done with share_open_graph method with object like this,, FB.ui({ method: ‘share_open_graph’, action_type: ‘og.shares’, action_properties: JSON.stringify({ object : { ‘og:url’: ‘http://astahdziq.in/’, // your url to share ‘og:title’: ‘Here my custom title’, ‘og:description’: ‘here custom description’, ‘og:image’: ‘http://example.com/link/to/your/image.jpg’ } }) }, // callback function(response) { if (response && !response.error_message) { // then get post content … Read more

Simple example to post to a Facebook fan page via PHP?

Finally, after a lot of tests, it worked, without the PHP SDK. This is the step by step guide: 1. Get permissions and the page token Go to https://developers.facebook.com/tools/explorer/ and select your app from the first drop down menu, in the left. Click on the button “Get access token”, and in the “Select Permissions” window, … Read more

How to discover which friends accepted invites with Facebook API?

TLDR: Save the response from the actual invite these friends request As far as I understood the reference you provided: You can start requesting invite_tokens which I assume you are already able to do. As answer you get this per invitable_friend: { “id”: “AVlzYTkXshfBqLe58zR9tY5dZ7L0wltTUkWKT0Z5V87zkwv-39…”, // Invite Token “name”: “Guy Cross”, “picture”: { “data”: { “is_silhouette”: … Read more

Get Facebook User ID from app-scoped User ID

From your conversation between Johannes N. Can I get the app-scoped ids (for apps I own) via the original user id. that would help too. To get app-scoped ids from original user id can be easily done via: https://graph.facebook.com/v2.0/?ids=http://www.facebook.com/USER_ID&access_token=ACCESS_TOKEN Yo can use fields parameter to return only id: https://graph.facebook.com/v2.0/?ids=http://www.facebook.com/USER_ID&fields=id&access_token=ACCESS_TOKEN The benefit of ids instead of … Read more

Using facebook SDK on Android gives “User logged in as different Facebook user.” error

If you want to log in with the user that is now logged in on the Facebook app and you still have a token valid for a previous user, you can detect the error and log out in your FacebookCallback like this: @Override public void onError(FacebookException e) { if (e instanceof FacebookAuthorizationException) { if (AccessToken.getCurrentAccessToken() … Read more

why do I get “Invalid appsecret_proof provided in the API argument”

The error is (based on my experience) almost certainly correct; it means you’re proving an invalid appsecret_proof with your API call Assuming you’re using the standard PHP SDK without modifications, the most likely reasons for this are: You configured the wrong app ID in the SDK code You configured the wrong app secret in the … Read more