Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 36,641 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][Xposed] XFBSync - Restore native FB contact sync via Xposed [CM10+]

Tip us?
 
agentdr8
Old
(Last edited by agentdr8; 11th July 2014 at 07:15 PM.)
#1  
agentdr8's Avatar
Senior Member - OP
Thanks Meter 1,041
Posts: 2,047
Join Date: Mar 2007
Location: Cowtown, CA

 
DONATE TO ME
Default [MOD][Xposed] XFBSync - Restore native FB contact sync via Xposed [CM10+]

I built this module at @mew1033's request. Thanks to the guide by @pogi1100, I was able to mimic the steps needed to get this working. This has been tested on CM11 4.4.4 Nightly from 06-19-14, but it should work on older CM/AOSP releases as well. Most OEM builds from HTC, Samsung, LG, Sony, etc don't require this, as they modify the ContactsProvider themselves to allow Facebook syncing.

Install steps:
  • Make sure you have the latest Xposed Framework installed
  • Make sure you enable the app_process from within Xposed Installer and reboot
  • Install attached apk, just like you would any other apk
  • Enable module in Xposed Installer, but don't reboot/soft-reboot just yet
  1. Open Settings->Accounts. If you have a Facebook account already added, remove it
  2. Click on your Google account, and under its sync preferences, uncheck the Contacts item
  3. Go back to Settings->Apps. Go to the All tab and find Contacts Storage. Clear the data
  4. Now you can soft/hard reboot
  5. When the phone is booted, go back into Settings->Accounts, select your Google account. Re-check your Contacts item
  6. When the Contacts are finished syncing, open the Facebook app and enter your login info
  7. Open Facebook->Settings and scroll all the way down to Sync Contacts
  8. Check either to Sync All, or Sync with Existing Names
  9. Go back to Settings->Accounts, pick your Facebook account
  10. You should see Contacts as an item and it should show the syncing status
  11. When the sync is done, open People and you should see all your FB contacts, with phone numbers and email addresses

Known Issues
If you have Privacy Guard, AppOps or any sort of privacy enhancer/app firewall, make sure you disable it for the Facebook app. This can prevent contact syncing from working.
Available via Xposed Repo as well (currently under Beta).

Source code can be found at my github

I've attached some screens showing the steps outlined above. It's pretty straight forward, but should be done in that order.
Attached Thumbnails
Click image for larger version

Name:	step1.png
Views:	2574
Size:	53.8 KB
ID:	2812925   Click image for larger version

Name:	step2.png
Views:	2252
Size:	30.6 KB
ID:	2812926   Click image for larger version

Name:	step3.png
Views:	2070
Size:	70.7 KB
ID:	2812927   Click image for larger version

Name:	step4.png
Views:	1935
Size:	59.2 KB
ID:	2812928   Click image for larger version

Name:	step5.png
Views:	1939
Size:	80.5 KB
ID:	2812929  

Click image for larger version

Name:	step6.png
Views:	1897
Size:	54.6 KB
ID:	2812930   Click image for larger version

Name:	step7.png
Views:	2294
Size:	122.5 KB
ID:	2812931   Click image for larger version

Name:	step8.png
Views:	2217
Size:	52.0 KB
ID:	2812932   Click image for larger version

Name:	step9.png
Views:	2008
Size:	33.4 KB
ID:	2812933   Click image for larger version

Name:	step10.png
Views:	1834
Size:	57.7 KB
ID:	2812934  

Click image for larger version

Name:	step11.png
Views:	1806
Size:	24.0 KB
ID:	2812935  
Attached Files
File Type: apk XFBSync_v1.0.apk - [Click for QR Code] (277.3 KB, 948 views)
AT&T HTC One (m7)
ARHD'd

Check out my Xposed modules
Stock Sense 6 battery with percent
Xposed StatusBar Mods - Statusbar mods for HTC One-series
TD Fuzzer - Change Touchdown device provisioning data
GoogleCamX - Use Volume buttons to zoom in Google Camera
XFBSync - Restore native FB syncing in CM10+
XposedMTC - Mods for KGL/RM/KLD Android headunits
GCalMonthDetail - Enable/customize event text in GCal month view
SkypeX - Spoof Skype version sent to servers
The Following 32 Users Say Thank You to agentdr8 For This Useful Post: [ Click to Expand ]
 
Persechini
Old
#2  
Persechini's Avatar
Senior Member
Thanks Meter 121
Posts: 360
Join Date: Mar 2012
Location: Rio de Janeiro
Hmm, I followed al the steps, Facebook setting show the option to sync contacts, but if I chose all contacts it auto changes to existing contacts, and despite Facebook showing up on the contacts app correctly now, even after letting all contacts sync, when showing only Facebook contacts the list is empty.Maybe some Facebook configuration is causing this trouble? It has all signs that it's working, but friends list visibility could mess this up right? Or its something else?

Enviado de meu Nexus 4 usando Tapatalk
In my tree
- Nexus 4 & Nexus 7 (2013) happily on Stock KitKat +Xposed
 
PeppeBove
Old
#3  
PeppeBove's Avatar
Member
Thanks Meter 4
Posts: 54
Join Date: Feb 2011
Could be useful (for others) to write instructions That appear when you click on module

Inviato dal mio ST15i utilizzando Tapatalk
 
jembot
Old
(Last edited by jembot; 23rd June 2014 at 04:28 PM.)
#4  
Senior Member
Thanks Meter 21
Posts: 169
Join Date: Oct 2007
Works great on XNote Touchwiz ROM! Finally a working facebook contact sync with phone numbers!..and no apk modification needed. Great work!

Btw, is there a way to backup the synced contact numbers to a file or merge it with your google account? I want to keep/archive the synced facebook info.
*** Please click THANKS if this post helped in any way. ***

Device: Note 3 (N9005) 32GB
ROM: MIUI Wonitor v5 (Lean Kernel)

Backup: Note 2 (N7100), S3 (I9300)
Smartwatch: Truesmart (2100 EU), Pebble
 
freedomtigers
Old
(Last edited by freedomtigers; 23rd June 2014 at 04:34 PM.) Reason: error correction
#5  
freedomtigers's Avatar
Member
Thanks Meter 0
Posts: 34
Join Date: Sep 2013
Location: kerala

 
DONATE TO ME
i did all things you described here
fb shows sync atlast

after it synced all contacts,
there is no fb contact.... (gmail contacts are there. no issue with them. and my phone contacts too)
the field is empty for fb contact

i did exactly as you described
and i selected contact display option for gmail and fb
still there is no fb contacts......

please help me......
 
MaKTaiL
Old
#6  
MaKTaiL's Avatar
Senior Member
Thanks Meter 1,142
Posts: 2,707
Join Date: Oct 2011
Location: Brasília
Does this work on stock/almost stock Android (Nexus, Moto X/G/E)?
 
Persechini
Old
#7  
Persechini's Avatar
Senior Member
Thanks Meter 121
Posts: 360
Join Date: Mar 2012
Location: Rio de Janeiro
Quote:
Originally Posted by MaKTaiL View Post
Does this work on stock/almost stock Android (Nexus, Moto X/G/E)?
Ok my nexus 4 and 7 it enables sync options, but sync zero contacts from Facebook

Enviado de meu Nexus 4 usando Tapatalk
In my tree
- Nexus 4 & Nexus 7 (2013) happily on Stock KitKat +Xposed
 
agentdr8
Old
#8  
agentdr8's Avatar
Senior Member - OP
Thanks Meter 1,041
Posts: 2,047
Join Date: Mar 2007
Location: Cowtown, CA

 
DONATE TO ME
Quote:
Originally Posted by Persechini View Post
Hmm, I followed al the steps, Facebook setting show the option to sync contacts, but if I chose all contacts it auto changes to existing contacts, and despite Facebook showing up on the contacts app correctly now, even after letting all contacts sync, when showing only Facebook contacts the list is empty.Maybe some Facebook configuration is causing this trouble? It has all signs that it's working, but friends list visibility could mess this up right? Or its something else?
I can do some further testing tonight. I only added a single Google contact to my test account, so there weren't any contacts to match names with for the FB sync. I'm wondering if maybe that's throwing it off. I know that when I picked to display only FB contacts, the single Google contact disappeared and I only saw FB contacts.
AT&T HTC One (m7)
ARHD'd

Check out my Xposed modules
Stock Sense 6 battery with percent
Xposed StatusBar Mods - Statusbar mods for HTC One-series
TD Fuzzer - Change Touchdown device provisioning data
GoogleCamX - Use Volume buttons to zoom in Google Camera
XFBSync - Restore native FB syncing in CM10+
XposedMTC - Mods for KGL/RM/KLD Android headunits
GCalMonthDetail - Enable/customize event text in GCal month view
SkypeX - Spoof Skype version sent to servers
 
agentdr8
Old
#9  
agentdr8's Avatar
Senior Member - OP
Thanks Meter 1,041
Posts: 2,047
Join Date: Mar 2007
Location: Cowtown, CA

 
DONATE TO ME
Quote:
Originally Posted by PeppeBove View Post
Could be useful (for others) to write instructions That appear when you click on module
Not a bad idea. I can add a built-in howto.
AT&T HTC One (m7)
ARHD'd

Check out my Xposed modules
Stock Sense 6 battery with percent
Xposed StatusBar Mods - Statusbar mods for HTC One-series
TD Fuzzer - Change Touchdown device provisioning data
GoogleCamX - Use Volume buttons to zoom in Google Camera
XFBSync - Restore native FB syncing in CM10+
XposedMTC - Mods for KGL/RM/KLD Android headunits
GCalMonthDetail - Enable/customize event text in GCal month view
SkypeX - Spoof Skype version sent to servers
 
agentdr8
Old
#10  
agentdr8's Avatar
Senior Member - OP
Thanks Meter 1,041
Posts: 2,047
Join Date: Mar 2007
Location: Cowtown, CA

 
DONATE TO ME
Quote:
Originally Posted by jembot View Post
Works great on XNote Touchwiz ROM! Finally a working facebook contact sync with phone numbers!..and no apk modification needed. Great work!

Btw, is there a way to backup the synced contact numbers to a file or merge it with your google account? I want to keep/archive the synced facebook info.
Contact merging is usually handled by the Contacts/People app itself I think. It doesn't merge the data together, but just combines multiple contacts with the same name under a single contact entry. If you want to extract data from one contact type and add to another, you'd probably want to export all contacts from say FB and then import them into your Google account via the web.

Try displaying only FB contacts and there might be an Import/Export option in the menu.
AT&T HTC One (m7)
ARHD'd

Check out my Xposed modules
Stock Sense 6 battery with percent
Xposed StatusBar Mods - Statusbar mods for HTC One-series
TD Fuzzer - Change Touchdown device provisioning data
GoogleCamX - Use Volume buttons to zoom in Google Camera
XFBSync - Restore native FB syncing in CM10+
XposedMTC - Mods for KGL/RM/KLD Android headunits
GCalMonthDetail - Enable/customize event text in GCal month view
SkypeX - Spoof Skype version sent to servers

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes