Facebook php-sdk v4 get friends ID -


How do I get friend ID with SDK V4?

Not working below ...

  $ buddies = (New FacebookRequest ($ session, 'GET', '/ me / friends')) - & Gt; Execution () - & gt; GetGraphObject () - & gt; AsArray (); Foreign exchange ($ friend ['data'] as $ friend) {echo 'name:'. $ Buddy ['name'] '& lt; Br / & gt; '; Re: 'ID:' $ buddy ['id'] '& lt; Br / & gt; & Lt; Br /> ';; $ Counter ++; }  

With the new graph API v2.0, you have user-friend In addition to receiving friend's information for permission, this method no longer returns to all the user's friends. It only gives a list of friends who also use the same application.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -