Login   Register  
PHP Classes
elePHPant
Icontem

Get facebook profile image url in json data

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  Get facebook profile image url in json data  >  (Un) Subscribe thread alerts  
Subject:Get facebook profile image url in json data
Summary:Hi i need facebook pictue url like twitter,google.
Messages:3
Author:Shivaraj
Date:2012-12-26 08:01:11
Update:2012-12-26 10:38:58
 

  1. Get facebook profile image url in json data   Reply   Report abuse  
Picture of Shivaraj
Shivaraj
2012-12-26 08:01:11
Hi i want to fetch facebook profile picture.
How can i get???

If i give

$client->scope = 'email,picture';

facebook login is not working...

But i'm getting,
For twitter: [profile_image_url]
For google : [picture]
...

Please guide me to get fb profile picture url.

Thanks,
Shivaraj

  2. Re: Get facebook profile image url in json data   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-12-26 10:17:04 - In reply to message 1 from Shivaraj
The URL of the picture is http://graph.facebook.com/[uid]/picture where [uid] is the id of the user returned by the API call to https://graph.facebook.com/me .

  3. Re: Get facebook profile image url in json data   Reply   Report abuse  
Picture of Shivaraj
Shivaraj
2012-12-26 10:38:58 - In reply to message 2 from Manuel Lemos
Thanks it worked...