php - How can I fetch the facebook profile picture of an authenticated user? -


I have created a website using php, where I have a user facebook id, email id and fb id and some other Luggage. Is it possible to get a profile picture from Facebook, so the user does not need to upload a picture when the user enters the system?

You can get Facebook profile photo using the following URL:

  http://graph.facebook.com/ID/picture   

For the currently certified user, you only need to use the User ID returned in the SDK:

  $ user = $ facebook-> GetUser (); $ Url = "http://graph.facebook.com/{$user}/picture";    

Comments