Mrjndong / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Add contacts profile image #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When calling getContactList() add the contact profile image url to Contact 
object

Original issue reported on code.google.com by yoav...@gmail.com on 19 Apr 2012 at 6:49

GoogleCodeExporter commented 8 years ago
Hi 

Currently we are not supporting this.
But we are providing 'id' in contact object, so you can use the following URL 
to get the profile pic of that person.
http://graph.facebook.com/ID/picture

Replace 'ID' with the id of the person.

Regards
Tarun

Original comment by tar...@brickred.com on 27 Apr 2012 at 8:38

GoogleCodeExporter commented 8 years ago
thanks for the replay,

the thing is that for some providers such as LinkedIn, yahoo, Google
it is not that simple.
in order to get a contact profile image there is a need to do an
authorized request.
so if i need to show pictures of a users contacts on client side
(supply direct image URL) i need to request image for each contact.
for some providers this can be solved in the contacts request.

thanks.
Yoav Alhalel

On Fri, Apr 27, 2012 at 11:38 AM,  <socialauth@googlecode.com> wrote:

Original comment by yoav...@gmail.com on 30 Apr 2012 at 4:23

GoogleCodeExporter commented 8 years ago
In that case you can try by calling the api() method of provider. In which you 
can give the url to get the photo and function will automatically attach the 
access token with this request.

Original comment by tar...@brickred.com on 4 May 2012 at 8:22