php - Can I use the Facebook graph api to get user's friends profiles pictures? -


i'm new facebook development, after testing adobe api in flash game decided test using graph api communicating flash game. after doing basic stuff connecting , getting user's data, wondering if it's posible user's friends profile pcitures, can pass them uiloaders inside flash game , show them.

if can point me examples of basic actions use facebook graph api, invite friends or posting wall example, wonderful.

thanks.

update:

using nathan's suggestion tried friends , worked:

$friends= $facebook->api('/me/friends?token='.$session['access_token']); var_dump($friends); 

then tried friend's pictures with:

foreach ($friends['data'] $friend)     {         $picture= $facebook->api('/'.$friend['id'].'/photo');     } 

but didn't work. idea ?

thanks.

you first have list of friends https://graph.facebook.com/me/friends?access_token=... each of friends can request http://graph.facebook.com/user_id/picture give url of current profile photo.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -