how can I find the owner of a facebook app ID?

If you have access to the app id and the app secret but no access to the app within Facebook it is possible to discover the creator_uid and from there the email address of the app owner using the graph api. First get an app access token: https://graph.facebook.com/oauth/access_token?client_id={APP_ID}&client_secret={APP_SECRET}&grant_type=client_credentials With this you can get the creator_uid: … Read more

Get Facebook “Like” count for every page on my domain

Actually I would do it this way: $arrayOfPages = array(‘url1’, ‘url2’, ‘url3’); $listOfPages = implode(‘,’, $arrayOfPages); SELECT share_count, like_count, comment_count, total_count, url FROM link_stat WHERE url IN ($listOfPages) That would give you all the data with the URL as a unique identifier without having to break Facebook’s policy against fake users. You can dynamically create … Read more

Facebook oauth retrieve user Email

You need get email explicitly as follows: var url=”/me?fields=name,email”; FB.api(url, function (response) { alert(response.name); alert(response.email); }); And to get the email address, email permission is needed. So the code might look like (there are other options like Register button, login button..) FB.login(function (response) { if (response.session) { var url=”/me?fields=name,email”; FB.api(url, function (response) { alert(response.name); alert(response.email); … Read more

Facebook Messenger webhook setup, but not triggered

I have recently worked with the new chat bot API and there’s a lot that can go wrong. So, here are some Ideas. Make sure you’ve verified your webhook under the product settings tab. subscribe your app to the page using your page access token. It returns {“success” : “true”} if everything goes right. Important … Read more

“An access token is required to request this resource” while accessing an album / photo with Facebook php sdk

There are 3 things you need. You need to oAuth with the owner of those photos. (with the ‘user_photos’ extended permission) You need the access token (which you get returned in the URL box after the oAuth is done.) When those are complete you can then access the photos like so https://graph.facebook.com/me?access_token=ACCESS_TOKEN You can find … Read more

Why new fb api 2.4 returns null email on MVC 5 with Identity and oauth 2?

Taken from a Katana Thread I devised the following: Change the FacebookAuthenticationOptions to include BackchannelHttpHandler and UserInformationEndpoint as seen below. Make sure to include the names of the fields you want and need for your implementation. var facebookOptions = new FacebookAuthenticationOptions() { AppId = “*”, AppSecret = “*”, BackchannelHttpHandler = new FacebookBackChannelHandler(), UserInformationEndpoint = “https://graph.facebook.com/v2.4/me?fields=id,name,email,first_name,last_name” … Read more