api - Get Facebook friends list on login -


I need to get the list of all the friends of the logged-in user. But I'm stuck with the way to get results. $ user = $ facebook-> GetUser (); $ User_friends = $ facebook- & gt; API ('/ mi / buddy list', array ('field' =>; id, name '')); Print_r ($ user_friends);

I'm getting

  Fatal error: Undiscovered OAuthException: unknown path components: / Throw list of friends base_facebook.php on line 1254   / me / friendlists  

Code> / me / friendlist . Although you will not find the user's friends, but only friends created to sort their friends.

To get to friends, you'll find / me / friends , although you will only be able to find friends who are also using your app. More about the change since April 2014 See Changelog Lodge for information:

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -