For example, can I use the following method to get any user’s friends? what should the access_token field be?
$friends = json_decode(file_get_contents('https://graph.facebook.com/user_id/friends?access_token=...'),true);
Is it possible to create a php page that when we only input a user’s id or name without logging into the user’s account, it returns all his/her friends’ profile pictures automatically?
Thanks!
Q:is there a way to get user”s all friends profile pictures without using access_token?
A: programatically – NO (else you may still use standard facebook webpage)
Q: what should the access_token field be?
A: you gain it when you login to facebook using graph api – it is related to the user and the application (AppID) specified during login.
Q:Is it possible to create a php page that when we only input a user’s id or name without logging into the user’s account, it returns all his/her friends’ profile pictures automatically?
A: Yes, but such user have to permit to your facebook user and your application to retrieve such data.