Is it possible to pass Facebook Graph API access token through request header?

Yes it is possible Authorization: Bearer AccessTokenHere e.g. curl –header “Authorization: Bearer CAAC…ZD” https://graph.facebook.com/me This answer previously recommended using “OAuth” instead of “Bearer” as the token type. Both will work, but “Bearer” is the type that shows up in the standard. Also, on completing Facebook’s OAuth flow, the token_type in their response is bearer. So … Read more

How to access Facebook private information by using ASP.NET Identity (OWIN)?

Create a new Microsoft.Owin.Security.Facebook.AuthenticationOptions object in Startup.ConfigureAuth (StartupAuth.cs), passing it the FacebookAppId, FacebookAppSecret, and a new AuthenticationProvider. You will use a lambda expression to pass the OnAuthenticated method some code to add Claims to the identity which contain the values you extract from context.Identity. This will include access_token by default. You must add email to … Read more

Getting Facebook Reactions with Graph API

EDIT: As of April 12th, 2016 Facebook has published a reactions endpoint for posts as part of their v2.6 release of the GraphAPI GET /v2.6/{object-id}/reactions More information can be found here: https://developers.facebook.com/docs/graph-api/reference/post/reactions END EDIT I’m not sure if Facebook has published this yet, but the reaction information is currently available in the Graph API v2.5. … Read more

How can I execute a FQL query with Facebook Graph API

Here’s an example of how to do a FQL query using the Graph API and JavaScript FB.api( { method: ‘fql.query’, query: ‘SELECT uid, first_name, last_name FROM user WHERE uid = ‘ + someUid }, function(data) { // do something with the response } ); This assumes you’ve already setup your page according to the Facebook … Read more