Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, how to get Facebook/Twitter/etc contact photos

I want to load contact photos for contacts in an app, I know how to do that as there are many tutorials to do that. But these methods(stock android) seems to fail to pull back 3rd party sync'd photos I was wondering if there is a solid and reliable way to do this natively.

This has been asked many times and I can reel off the answers left right and center. Only problem is they don't actually solve the problem. Only create work arounds.

After some extensive searching I came across this:

There is a bug in android to prevent us to retrieve the contact photo (almost all missing contact photos are facebook profile photo). To solve this, we must sign the APK by the shared cert and force the app running in shared-uid.

I found this on https://sites.google.com/site/t2k269group/development-diary/load-contact-photo can anyone elaborate on how to sign with a shared key and if this would even work?

Of if anyone else actually has a reliable solution that loads contacts photos regardless of what synced them.

Question: Is there a reliable way to load contact photos which includes synced photos not just the ones set on the phone?

Thanks in advance. Cheers, Chris

like image 573
Chris.Jenkins Avatar asked Nov 17 '11 09:11

Chris.Jenkins


People also ask

How do I get Facebook pictures on my phone contacts?

Step 1: Open the Facebook app on your Android. If you don't have Facebook on your device for some reason, grab yourself a copy for free. Step 2: Navigate to the photos area for one of your friends and find a picture you'd like to set as their contact photo. Step 3: Press the menu button and then tap on Set as.

How do I get contact pictures?

Once you select the contact, enter Edit Mode first. Otherwise, you might trigger a call by tapping their picture. In Oreo, tap the edit icon in the lower-right corner of the screen. Once in Edit Mode, tap the person's image, and then you should get the option to either take a picture or choose one.

Why do some of my contacts have pictures Android?

Some people add their own profile pics on their Google account. So anyone who has their email address (or number, if it's updated on their Google profile) will be detected by Google and linked to your account. For example if I'm your contact and I updated a profile pic, my pic will be updated on your phone.


1 Answers

here u will get Contacts of FB with photos https://github.com/facebook/facebook-android-sdk/tree/master/examples/Hackbook/src/com

like image 194
Ronak Mehta Avatar answered Sep 19 '22 12:09

Ronak Mehta