Facebook ‘Friends.getAppUsers’ using Graph API

I searched around for a while, and I too thought this wasn’t possible using Graph API. However, I posted a similar question, Replacement for old GetAppUsers call to see a user’s friends who use my application?, for the specific API I was using and was given a great general answer. https://graph.facebook.com/me/friends?fields=installed or more generally https://graph.facebook.com/{user … Read more

Facebook: get list of pages that a user is admin of

Its simple with Graph API. Steps: Get the manage_pages permission from the user (extended permissions). Call the Graph API – https://graph.facebook.com/me/accounts You can test this procedure in the graph explorer -> Just click on ‘Get Access Token’ button-> under ‘Extended permission’ check ‘manage_pages’ & submit it. It will give you the admin-page-details JSON.

Send private messages to friends

Sending private message through api is now possible. Fire this event for sending message(initialization of facebook object should be done before). to:user id of facebook function facebook_send_message(to) { FB.ui({ app_id:’xxxxxxxx’, method: ‘send’, name: “sdfds jj jjjsdj j j “, link: ‘https://apps.facebook.com/xxxxxxxaxsa’, to:to, description:’sdf sdf sfddsfdd s d fsf s ‘ }); } Properties app_id Your … Read more

Facebook Graph API, how to get users email?

The only way to get the users e-mail address is to request extended permissions on the email field. The user must allow you to see this and you cannot get the e-mail addresses of the user’s friends. http://developers.facebook.com/docs/authentication/permissions You can do this if you are using Facebook connect by passing scope=email in the get string … Read more

IOS Facebook SDK – Post Open Graph and show on Timeline without clicking Activity Log

I’ve moved this answer out of @isaacselement question. Just add one more code to your FBOpenGraphAction Object: id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject]; [action setObject: @”true” forKey: @”fb:explicitly_shared”]; // This is the key point! And you should enable the ‘explicitly shared’ setting for the open graph action in the Facebook Developer App Dashboard in the … Read more

how to test open graph on localhost

Using a local proxy is the right solution. ngrok didn’t work for me neither. A similar tool that did work with facebook debugger is localtunnel ✅ npm install -g localtunnel lt –port 8000 # or using npx without installing localtunnel npx lt –port 8000 Generates a url that looks something like https://<random_hash>.localtunnel.me/. Using this url … Read more

How to check if a user likes my Facebook Page or URL using Facebook’s API

I tore my hair out over this one too. Your code only works if the user has granted an extended permission for that which is not ideal. Here’s another approach. In a nutshell, if you turn on the OAuth 2.0 for Canvas advanced option, Facebook will send a $_REQUEST[‘signed_request’] along with every page requested within … Read more