retrieve full list of friends using facebook API [duplicate]

As mentioned in the Graph API v2.0 upgrading guide (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids) /me/friends returns the user’s friends who are also using your app In v2.0, the friends API endpoint returns the list of a person’s friends who are also using your app. In v1.0, the response included all of a person’s friends. There are two key use … Read more

Graph API returns ‘false’ or ‘Unsupported get request’ accessing public Facebook Page

Assuming the page is Alcohol gated (In the OP’s example the page was an alcohol page) you must access the page with an access token for a user who meets the alcohol restrictions. For alcohol specifically, any user over 21 should be able to do this, and for some markets it’s lower (depending on the … Read more

How do you post to the wall on a facebook page (not profile)

Get PHP SDK from github and run the following code: <?php $attachment = array( ‘message’ => ‘this is my message’, ‘name’ => ‘This is my demo Facebook application!’, ‘caption’ => “Caption of the Post”, ‘link’ => ‘http://mylink.com’, ‘description’ => ‘this is a description’, ‘picture’ => ‘http://mysite.com/pic.gif’, ‘actions’ => array( array( ‘name’ => ‘Get Search’, ‘link’ … Read more

Register with Facebook sometimes doesn’t provide email

Just a guess… The facebook documentation says: note: this field will not be returned if no valid email address is available for the user Source: https://developers.facebook.com/docs/reference/api/user/ So when an email address become invalid (users who haven’t used facebook in years and have destroyed/changed their email address since for example), facebook may stop returning this field. … Read more

Facebook login message: “URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings.”

As the questioner writes In the advanced tab, Valid OAuth redirect URIs is set to: … and I had the same problem (writing the redirect url into the wrong input field) I would like to highlight that It’s NOT Settings -> Advanced -> Share Redirect Whitelist but Facebook Login -> Settings -> Valid OAuth redirect … Read more

Facebook Oauth Logout

I was having the same problem. I also login using oauth (I am using RubyOnRails), but for logout, I do it with JavaScript using a link like this: <a href=”/logout” onclick=”FB.logout();”>Logout</a> This first calls the onclick function and performs a logout on facebook, and then the normal /logout function of my site is called. Though … Read more