Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Koush
Old
#1  
Recognized Developer - OP
Thanks Meter 880
Posts: 917
Join Date: Sep 2007
Default Adding contact pictures to your phone from Facebook

Man, I wrote this tool ages ago. I completely forgot about it until I saw the other thread in this forum. Basically I wanted a way to get all my friend's facebook profile photos into my phone really easily.

Your phone syncs your contacts from your Gmail/Google. And Gmail supports contact pictures. I wrote an application that logs into your facebook, and finds any contacts that also exist in your Gmail account. If it finds a matching contact, it uploads that Facebook profile picture to your Gmail contact. And then those pictures show up on your phone! Pretty useful.

Usage (this application runs on your Windows PC):
0) Make sure you have .NET Framework 3.5. The application may crash otherwise.
1) Start the application and input your Gmail username and password.
2) The next screen will ask for your Facebook credentials.
3) Wait for it... Wait for it... Done! (The application will have finished syncing)
4) Wait some more... Your phone may take a while to sync the new images from Google's servers. But they'll get there eventually.

WARNING: This will replace any photos that may already be associated with your contact. Go ahead and modify the code if you don't want it to do that.

Download the Windows application and the source here:
http://www.koushikdutta.com/2008/10/...-facebook.html
 
punkweakling
Old
#2  
Senior Member
Thanks Meter 5
Posts: 256
Join Date: Dec 2008
Whoah dude! I can't use this (Mac!) but sounds great. I'm assuming you have all the API's down, have you considered building this as an Android app?
 
Koush
Old
#3  
Recognized Developer - OP
Thanks Meter 880
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by punkweakling View Post
Whoah dude! I can't use this (Mac!) but sounds great. I'm assuming you have all the API's down, have you considered building this as an Android app?
Just run it on a Windows PC then. Nothing is actually stored on the PC; it's just syncing pictures between servers (Google/Facebook). I ran it once several months ago and haven't thought about it since.

Yeah, I've thought about making it an Android application, but I don't think it would be that useful. Contact management and syncing between two servers is done much easier on a PC, for both the user and a developer. I'm thinking about improving the application to allow syncing between Outlook, Facebook, and Google. That would be handy, but difficult to use on a phone. The results, however, would show up on your phone.
 
nickmgray
Old
#4  
Senior Member
Thanks Meter 42
Posts: 276
Join Date: Dec 2005
Location: Minneapolis
I must say, great little app. I've given up trying to add pictures to my contacts. Worked perfetly once I got Microsoft .NET Framework 3.5 installed. I hope you really consider making this an Android App. I can guarantee that it'll get thousands of downloads in the first day.

For those of you who do note have Microsoft .NET Framework 3.5, check out the link below.

http://www.microsoft.com/downloads/d...displaylang=en
Follow me on Twitter http://twitter.com/htcsource
 
phatman81
Old
#5  
Senior Member
Thanks Meter 0
Posts: 146
Join Date: Feb 2006
Location: Jersey City

 
DONATE TO ME
this is very nice. i would love to use it.... if only i wasnt still using myspace... bleh
 
texasaggie1
Old
#6  
texasaggie1's Avatar
Senior Member
Thanks Meter 5
Posts: 356
Join Date: Aug 2004

 
DONATE TO ME
Default Facebook pics for gmail contacts...

worked great for me. Thanks!
First Device: Windows CE Cassiopeia 4mb 1997.

Current Devices:
Nexus S on ICS.
Unlocked T-Mobile Galaxy S3.
Unlocked iPhone 4

I live with ORD.

Twitter: http://twitter.com/texasaggie1
Check out my TV show, tekmix.tv
 
skyred
Old
#7  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Sep 2007
Location: New York
If it is on Android, every time a new contact is added, the program searches for the profile image from Facebook or Linkedin. It might be cool. Is your source code under GPL? I am interested in converting your code into Java, so it can run on Android.
 
Koush
Old
#8  
Recognized Developer - OP
Thanks Meter 880
Posts: 917
Join Date: Sep 2007
It's Creative Commons, not GPL. The application itself is less than 30 lines of code. It is just leveraging the .NET bindings to the Facebook and Google Data APIs.
 
momentarylapseofreason
Old
#9  
momentarylapseofreason's Avatar
Senior Member
Thanks Meter 17
Posts: 1,064
Join Date: Apr 2007
Location: Chicago
So is this using phone numbers? Email addresses? Names? (to compare between Gmail and Facebook)?
 
Koush
Old
#10  
Recognized Developer - OP
Thanks Meter 880
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by momentarylapseofreason View Post
So is this using phone numbers? Email addresses? Names? (to compare between Gmail and Facebook)?
Just names. The Facebook API does definitely does not give you access to the email address. And the version I was using (and this may have changed) also does not give you access to phone numbers.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more