yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] agentdr8:
Sorry about that. I don't think rovo fixed the installer for later versions of the framework yet.

You'll want to flash the framework for your device's architecture from this thread depending on which Android version you're on.
[Xposed Framework Modules] sasokutenshin:
What IS the last Facebook version that it'll work with on Marshmallow?
[Xposed Framework Modules] agentdr8:
I'm using v41.0.0.0.94.
[Xposed Framework Modules] sasokutenshin:
I uninstalled FB and installed the version you indicated from apkmirror. I followed the instructions exactly, but it's not working. It's strange. In my phone's Settings > Accounts > Facebook, the contacts option is there and turned on. But in the Facebook app, the contact sync option isn't there. And in my contacts app, they're not showing up at all. Any ideas?
[Xposed Framework Modules] agentdr8:
What device/ROM/xposed version?
[Xposed Framework Modules] sasokutenshin:
Nexus 5 stock rooted 6.0 Marshmallow with Xposed Framework version 78.
[Xposed Framework Modules] DevilMind007:
why this does Not work with stock 4.4.4 Rooted and Xposed for Google Android One sprout8/sprout_b ??
[Xposed Framework Modules] agentdr8:
It most likely does, but you have to use a specific version of the Facebook app. I believe it's v14 or older for Kitkat devices.
[Xposed Framework Modules] DevilMind007:
can you link to Facebook apk versions which work?

i have 5 android family member phones.

1 is Kitkat 4.4.4

2 are Jelly Bean 4.1.2 and 4.2.2

2 are Lollipop 5.1.1
[Xposed Framework Modules] agentdr8:
v14 is the last known working version for 4.4.4 and below. You might be able to find it mirrored somewhere on the net (or possibly earlier in this thread). For LP+, v41 seems to work fine.

Also, the high-res contact photos may not work on devices under LP. I don't have any of those, so I have no way of testing.
[Xposed Framework Modules] joeclark:
High-res photos? This would be nice but I don't remember a time that Facebook had high-res contact photos. How do you enable this?

sent from a device using an app
[Xposed Framework Modules] agentdr8:
The module will enable the option to show up if you're using a version of the FB app that has it.
[Xposed Framework Modules] joeclark:
Hmm I'm using 41.0.0.0.94 I have contact sync in accounts but nothing in the app itself

sent from a device using an app

---------- Post added at 04:54 PM ---------- Previous post was at 04:52 PM ----------

Cleared cache, force closed and opened app and sure enough, there it is, thank you !

sent from a device using an app
[Xposed Framework Modules] -DM-:
The last version of FB that works for me is v.54.0.0.23.62 and it has high-res contacts pics as well, I'm LP 5.1.1

here
[Xposed Framework Modules] agentdr8:
Thanks for the update. Glad to see a newer version with the contact sync classes back in.
[Xposed Framework Modules] -DM-:
haven't tried any version higher than that except for v.58 (which didn't work) so some in between might also work...if somebody is willing to test

By the way the version that I linked in my above post is signed with different keys so you won't have the google play store update nag for FB anymore ;)

Also would it be possible to add the sync class by recompiling the apk?!?
[Xposed Framework Modules] agentdr8:
I looked into this a while back, and it would be quite a large undertaking (if not impossible). I imagine that FB works off of multiple code branches, and some have the sync classes, and others don't. Merging them would probably be feasible with source, but quite difficult with just decompiled code.
[Xposed Framework Modules] joeclark:
I tried installing that version and it would not install even when first uninstalling Facebook.

sent from a device using an app
[Xposed Framework Modules] -DM-:
Did you got a parsing error?

As I said before, I'm on Lollipop 5.1.1, got the app offered to update from the play store a while back, I just signed to apk with test keys so I don't get updates from the store anymore

---------- Post added at 03:35 AM ---------- Previous post was at 03:31 AM ----------

thanks for the clarification
[Xposed Framework Modules] joeclark:
No it just said not installed. No error, just not installed

sent from a device using an app
[Xposed Framework Modules] DevilMind007:
my device is Android One sprout8/sprout_b

i had android MM 6.0 and LP 5.1.1 before, both of these have memory leak bug which reboots phone again and again.

KK 4.4.4 has solved all these issues and drastically increased battery life.

Now only issues are:

1. INTERNAL STORAGE is not accessible

2. XFBSYNC not working
[Xposed Framework Modules] agentdr8:
I can't help with the internal storage issue, but if you have the xposed framework installed and working, then please provide the error.log after enabling debug for the module. This post explains how to do that.
[Xposed Framework Modules] -DM-:
Try this one, this is untouched with the original signature...

If you navigate to the downloaded file location, does the apk have the FB icon or just the generic android robot?
[Xposed Framework Modules] DevilMind007:
where is the contact sync option? it is missing on all versions of Facebook app.

What about sync contacts from FB messenger?

I'm on Stock 4.4.4 for android one sprout8/sprout_b, so which is like mini nexus from Google.

So, stock ROM on nexus and android one are considered AOSP ROM?
[Xposed Framework Modules] joeclark:
Try clearing cache and force closing the app and reopening it.

sent from a device using an app
[Xposed Framework Modules] agentdr8:
Contact sync in FB messenger isn't the same code as in the main FB app. Stock ROM on Android One should be close enough to AOSP.

It really comes down to the specific FB version, and whether or not the xposed module is working. I can't offer much help on the latter without an error.log.
[Xposed Framework Modules] DevilMind007:
i have FB version 41.0.0.19.131

how to make or get error.log from XFBSync?
[Xposed Framework Modules] agentdr8:
If this is the device running Kitkat 4.4.4, I just got done stating that you can't use any version of the FB app past version 14. Newer FB versions, including v41, for API15 (ICS and newer) don't include the contact sync classes. Version 41 for API21 (5.0+) still retains those contact sync classes.

As for enabling debug so that you can get some info in the Xposed Installer->Logs (which you can save to SD, or share via email), was posted here.
[Xposed Framework Modules] -DM-:
[MENTION=434511]agentdr8[/MENTION]

just updated to 1.2.6, didn't really think twice when I read the changelog but got a good laugh when I saw the icon...

made me feel to make one (two) closer to facebook look but with the same spirit that your new icon, if you like them, feel free to use them ;)

or
[Xposed Framework Modules] DevilMind007:
thanks now it is working.

Facebook 14.0.0.17.13 version apk is working great on 4.4.4 stock rooted exposed Android One sprout8/sprout_b.

i can sync contacts to phone now.

but i upload these or combine them with my Google contacts for online backup?
[Xposed Framework Modules] onesolo:
I know that this thread is about this xposed module, but I have on question somehow related.

I have Messenger last version. On settings, I have Sync Contacts ON. On phone settings, Accounts, I also have Messenger there. When I open the Contacts app, Contacts to display, Messenger contacts is displayed there and is ticked, but not messenger contact is displayed. Is this a bug or what? Wasn't supposed to show my messenger contacts there?!
[Xposed Framework Modules] DevilMind007:
same question i was going to ask [emoji12]
[Xposed Framework Modules] agentdr8:
Very nice! I like it even better. Will update the apk with that one instead.

Glad to see you got it working. As for combining contacts, that's usually dependent upon the Contacts/People app that you have. I don't recall if the AOSP Contacts app had the ability to join contacts together back on KK.

Tbh, I never played around with the Messenger contact sync, other than to compare its code against the contact sync classes in the main FB app. I don't know what it actually does (or doesn't do).
[Xposed Framework Modules] onesolo:
[MENTION=434511]agentdr8[/MENTION] it's been like that for months, it won't sync anything...
[Xposed Framework Modules] -DM-:
You're welcome and I'm glad that you like it, I threw the first one together real fast but then after some thoughts I found that the second one with the app name will look more complete...but it's all up to you... That was just a small contribution to your work ;)
[Xposed Framework Modules] StephenMilone:
On a Moto X Pure 6.0. I used to use this when my phone was on 5.1 and it worked wonderfully. I've since wiped and loaded 6.0 on here and am trying to set this up again and having no luck.

I installed the version of FB that was mentioned to work ( 54.0.0.23.62 ) but still seeing class not found exceptions for com.facebook.contactsync in xposed logs...and never seeing the option to sync. any thoughts?
[Xposed Framework Modules] agentdr8:
If you're seeing that exception in the log, then the version of the FB isn't compatible. There's many different variations of each major version, so maybe try another v54 from apkmirror.

Other than that, you can always go backwards to v41.0.0.0.94 which I know works with the module.
[Xposed Framework Modules] StephenMilone:
41 did it. thanks!!
[Xposed Framework Modules] rfilipoiu:
v41.0.0.0.94 has some issues, like masking what you type, when you type...

if somebody finds a working 54.0.0.ab.xy that would be nice ...
[Xposed Framework Modules] Emama:
Using FB 41.0.0.0.94,

CM13

Contacts are synced, but they don't merge to my current list. I need to merge manually. Is that a norm?
[Xposed Framework Modules] agentdr8:
I believe contact joining/merging is dependent upon the specific Contacts app, and the AOSP one doesn't offer any automated joining.
[Xposed Framework Modules] DevilMind007:
what about Stock Vanilla 4.4.4 ROM on Android One?

can we turn OFF Auto Merge?? Contacts Merge for me gets very annoying.
[Xposed Framework Modules] agentdr8:
You would probably have to use a different Contacts app.
[Xposed Framework Modules] DevilMind007:
i am using 3 contacts app:

1. stock contacts

2. Contacts Plus old version

3. ExDialer Pro
[Xposed Framework Modules] agentdr8:
The stock contacts app most likely would have to be replaced with an AOSP version or something that doesn't automatically merge contacts. Unfortunately this isn't easily achieved in all cases.
[Xposed Framework Modules] yash1331:
is there any possible update on the module to support the latest FB app coming? or the module is discontinued?
[Xposed Framework Modules] agentdr8:
The module isn't discontinued, but there's no possibility of me adding contact sync functionality back into the more recent FB app releases.
[Xposed Framework Modules] DevilMind007:
so for Resurrection Remix ROM has been 6.0.1_r13 MM based on CM,slim.omni and original Remix ROM builds.

What version of FB app should i use?

on 4.4.4 KK stock FB app v14 was running perfect by the way.
[Xposed Framework Modules] agentdr8:
Try v41.0.0.94
[Xposed Framework Modules] Junior8712:
This module is working today ??
[Xposed Framework Modules] agentdr8:
English please.
[Xposed Framework Modules] Junior8712:
Está funcionando ??

Este módulo está funcionando hoje em dia ?

MOTO G1
[Xposed Framework Modules] Junior8712:
XFBSync

This module is working today ??
[Xposed Framework Modules] agentdr8:
It is still working as long as you are using a supported version of the Facebook app. The latest that I know works is v41.
[Xposed Framework Modules] 3lMghraby:
the module itself is working

it's the facebook app itself that dropped the support for contacts sync function

so itvs not related to the contacts app anymore (the problem I mean) but also removed from the facebook app itself wether you have the sync function on your system or not.
[Xposed Framework Modules] hcurnor:
I followed every step. But Its not working with a new Facebook app.

I have Facebook v168.0.0.30.90. In this version there is a toggle button of continuous contacts upload.

And i am not seeing any contact sync option in settings-accounts-fb.
[Xposed Framework Modules] agentdr8:
Sorry, but this module can't replace the functionality that the old FB app used to have. It hasn't been updated or maintained in years, so I doubt it'll work with any modern versions of the FB app.
[Xposed Framework Modules] Riekr:
You have to chmod 755 sqlite3 and run it from the folder which contains contacts db

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Xposed Framework Modules] agentdr8:
Sure thing. I'll put it up on my github shortly.
[Xposed Framework Modules] agentdr8:
What version of the FB app are you using? I did all the testing with the latest (that the Play store offered me) which was 11.0.0.11.23.

These are the options I see in FB when I hit the menu button.
[Xposed Framework Modules] agentdr8:
Seems to be an issue specifically with stock Nexus devices. I'm still looking through the ContactsProvider.apk you posted to see if I can find other things that might prevent it from working. Can you also check your FB app version for me?
[Xposed Framework Modules] Persechini:
Take your time dude, I appreciate your effort

facebook version 11.0.0.11.23 from play store regularly, I'm not on beta or alpha
[Xposed Framework Modules] Mardon:
@agentdr8

I do it in another way not the way @pogi1100 uses.

Using this since CM9 still using this on CM11

This works without XPosed so it works with ART ;)
[Xposed Framework Modules] agentdr8:
I can look through the FB app to see if there's a way to get high-res profile pics, but no guarantees.

The install steps were derived from the original guide, and it seemed like the cleanest way to produce a repeatable process. But if it works without doing that, then one less thing to do. Thanks.
[Xposed Framework Modules] agentdr8:
I think for most people, Xposed helps them achieve the level of modifications/customizations they want without having to get into apk decompiling, smali editing, etc. Your process seems good though, and solid, just probably a bit over the top for a lot of users here.

ART might be the new default for future Android versions, but I have faith that rovo will make it compatible if it's at all possible.
[Xposed Framework Modules] Mardon:
Not only default as said on IO, ART is the exclusive runtime on "L Release".

Means no more dalvik as alternative i think.

Lets hope rovo will find a way.

Otherwise there are tools which can do this decompile recompile steps on rooted devices also.

If someone would be able to create an app to patch ContactsProvider.apk on the device itself that would be great and a good alternative to your Xposed modul for ART users i think.
[Xposed Framework Modules] Grzesiek1010:
contatcs pictures look horrbile same pixels
[Xposed Framework Modules] onesolo:
I'm sure that if Ubersync, can download and display hi-res photos to the contacts, when the contacts are merged, I'm sure that there is a way for this xposed module to do also that. What is needed to do the same, that I don't know...

Yep, stock N5 all the way...

But I don't understand what your doubt... you don't get the facebook contacts to appear where? On the "Contacts to display" on the People app?? Is that it??
[Xposed Framework Modules] Riekr:
I get them in "contact to display" but none is displayed (like they are not synced).

Contact sync appears in account settings for facebook, but in facebook app settings where I have the options "all" and "only existing" even if I select "all" the options goes back to "only existing" automatically.

in the people app for contact that I know there is a facebook counterpart I don't see any reference to facebook.

running stock n5 4.4.4
[Xposed Framework Modules] agentdr8:
It's no different than how they used to look when the FB app originally synced contacts. The goal of this project was to restore native syncing, not replicate the handful of 3rd party apps that offer high-res profile pics, among other features.

That said, I think I can enable high-res profile pics. Just need to do some more testing.
[Xposed Framework Modules] azsrockz:
Nice work! Just had one problem. When the contacts were synced successfully, I went to my peoples app and founded that the contacts were synced but had no name. I have a screenshot for you to see. Am running PAC-Rom 4.4.4. Any help would be greatly appreciated. Thanks.
[Xposed Framework Modules] azsrockz:
Okay i figured it out. These were my WhatsApp contacts. When I open their number it would redirect me to WhatsApp and so i could find out whose no.s they were. So i just saved them manually. Anyways this works. Thanks a lot for the mod dev. Peace.
[Xposed Framework Modules] hellrokr:
This did not work :/.

I did exactly as the steps mentioned. Facebook sync was also done. I can see their photos updated but no details like phone number or email got added.

Any solutions?
[Xposed Framework Modules] agentdr8:
Stock Nexus 4? There seem to be some issues with the Nexus devices that I haven't been able to figure out yet.
[Xposed Framework Modules] hellrokr:
Carbon Rom. latest nightly.

I've read the thread that it already has modified contactsProvider.apk but i was not able to see any contacts in People from FB.

Although after applying your tweaks, all fb contacts are coming in people but i dont see any detail being synced beside the photo.

If i can help then let me know. This tweak is great.

Thanks for your efforts.:highfive:

edit: do you know any ROM which works ?
[Xposed Framework Modules] agentdr8:
Currently testing on CM11 which seems to work as far as phone #s and email addresses from FB contacts. I'll check the Carbon ContactsProvider again, but I think it might be inserting the wrong type of column for is_restricted.
[Xposed Framework Modules] Persechini:
Is there anything else we can test to get this app working on nexus devices?
[Xposed Framework Modules] agentdr8:
Not until I have a lead on why it isn't working specifically for the Nexus devices. There doesn't appear to be any significant changes in the ContactsProvider you provided compared to the one in CM11. I'm still stepping through the sync process in the code to try and figure out where it's getting hung up.
[Xposed Framework Modules] Koboldchen:
Worked fine on my stock odexed Nexus 4, even without deleting Facebook account and contacts database. Just install the module, restart phone and follow step 6 on this thread: http://xdaforums.com/showthread.php?p=49888304

Thanks!
[Xposed Framework Modules] agentdr8:
The module itself should handle step 6. But now I'm even more perplexed as to why it works on some but not other Nexuses.
[Xposed Framework Modules] Riekr:
could it be android version or a kernel setting selinux mode to permissive? (i'm on 4.4.4 stock so selinux is enabled)
[Xposed Framework Modules] agentdr8:
Can you try to set selinux to permissive (there's a small app for that here) and test?
[Xposed Framework Modules] Persechini:
Changing SElinux to permissive didn't change anything here
[Xposed Framework Modules] Riekr:
he alaready tried :P

another thing is that i use wathsapp but didn't remove that account, should I? [MENTION=4540792]Persechini[/MENTION] do you use it too?
[Xposed Framework Modules] Persechini:
No whatsapp here, my contacts are from google (gmail and google+) and Skype. I tried the installation process with all contact syncs disabled together with google's, including a setting in google+ app that does not seem represented in the google account sync options

Enviado de meu Nexus 4 usando Tapatalk
[Xposed Framework Modules] bharatmehta14:
Sync

I am not able to see the option to uncheck contacts on Google account.

I am using Galaxy Nexus with CM11
[Xposed Framework Modules] agentdr8:
I think that is only the case if you don't have the GoogleContactSyncAdapter.apk in /system/priv-app. Do you have the latest gapps package?
[Xposed Framework Modules] Devtaji:
Works excellent but one problem, the contact images are tiny. Is there any solution to that?

I tried Ubersync but the contact images returned to the small size when I removed the app. If only the Facebook app would download even medium size pictures it would be great.
[Xposed Framework Modules] agentdr8:
I've been trying to get the stock FB to sync higher res profile pics, but unfortunately they made the app in a way that it isn't as simple as flipping a bit. I think it's still possible, but it'll take some time before I get it working.

It's odd that the official FB app uses the older (and deprecated) FQL to retrieve profile pics, but then uses Graph API for everything else. Maybe the new version they just released fixes that? I haven't had a chance to figure out what's changed.
[Xposed Framework Modules] Persechini:
I uninstalled Facebook and Messenger from my nexus 4, wiping their data first, and after reinstalling I was able to choose to sync all Facebook contacts, and thus they showed up on the contacts app O.o

I have no idea why it worked, I uninstalled because messenger was acting weird, but I repeated the steps on my nexus 7 and got it working there as well

Enviado de meu Nexus 7 usando Tapatalk
[Xposed Framework Modules] agentdr8:
Glad to hear you got it working. Not sure how Messenger plays into it, as I didn't install it on my OneX during the testing. But it's possible there's a component in there that affects contact syncing on the Nexus devices.
[Xposed Framework Modules] yochananmarqos:
I doubt Messenger had anything to do with it. I think it was just collateral damage.
[Xposed Framework Modules] Riekr:
i don't have fb messenger installed :(
[Xposed Framework Modules] agentdr8:
Do you have Privacy Guard enabled for FB by chance? I received an email from a fellow user here stating that was his issue that prevented the contacts from syncing.
[Xposed Framework Modules] hindibuff:
Anyone experience missing call logs after installing this? I have tried the mod (not exposed) earlier and although Facebook sync worked, the call log stopped working on my galaxy Samsung s3 Sprint version. Just wondering if anyone with same setup has their call logs working after this mod was implemented?
[Xposed Framework Modules] Riekr:
no i'm on stock (n5) like Persechini i think
[Xposed Framework Modules] Persechini:
I am an idiot. Messenger has a contract sync option but it seem unrelated, maybe just for it's own functionalities, but that is not it anyway

I don't have cm privacy guard but I have an app ops module, and Facebook had a lot of things denied there until the reinstall reset all permissions :/

Well, at least the mystery is solved

Enviado de meu Nexus 4 usando Tapatalk
[Xposed Framework Modules] agentdr8:
It shouldn't have any effect on the call log. I think that's stored under the Phone or Dialer sqlite dbs.
[Xposed Framework Modules] hindibuff:
Not really sure how it works but it stopped recording any call logs. Not even the numbers. It was reported by some others as well in a different thread but there was no resolution. So just curious if someone using a Samsung GS3 has used this mod successfully?
[Xposed Framework Modules] Mardon:
The mod contactsprovider.apk needs to be updated sometimes if some changes were made. Otherwise call log and also blocking list feature might be broken ;)

In that case patch the Roms original contactsprovider.apk (i already posted here in thread howto do it)
[Xposed Framework Modules] hindibuff:
Mardon,

Just read your post in the thread and wow! You sure know your stuff. I am afraid all that programming is over the top for me. Hoping someone using my phone model will chime in in due time.
[Xposed Framework Modules] agentdr8:
The process of modifying the contacts2.db schema is included within this mod. After adding that column, it touches a file in /data/data/com.android.providers.contacts/files named dbmodded, which it then checks for existence to determine whether or not to bother checking the schema for modification upon subsequent invocations.
[Xposed Framework Modules] hindibuff:
Thanks. Will try it and revert back.