yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] dmarden:
I had done so, but did it again so that I could say I did as requested, lol.

It's not there for me. The sync option is, but the quality option has not returned since it vanished.

The database values are still in tact as well.
[Xposed Framework Modules] JRJ442:
Facebook sucks at life. Lol
[Xposed Framework Modules] hackthis02:
Yeah an hour or so after posting the option was gone for me too. Which leads me to believe the functionality isn't gone. They just added a new DB value switch or something like that.
[Xposed Framework Modules] Milamber:
So are high resolution images back?
[Xposed Framework Modules] dejanxxxx:
When go to account / contacts ,I dont option that see contacts only REMOVE AND SYNHRONIZE . Same on facebook account contatacts only remove and synhronize. On facebook nothing have , dont have phone number and e mail.It is stock ROM Lollipop 5.0.2 for LG BELLO .
[Xposed Framework Modules] agentdr8:
What version of the Facebook app do you have installed?

On another note, it seems the latest v45 once again removes the high-res picture option.
[Xposed Framework Modules] JudgeDread11:
Just FYI, the app 'sync me' works again.

I came here when Facebook removed the permissions for external apps to sync pictures. I was using 'haxsync'. They have now restored these permissions on an individual level. So far ''sync me', is the only app I've tried that works again.
[Xposed Framework Modules] Thaodan:
Does this work with 5.15.1?
[Xposed Framework Modules] agentdr8:
Not sure what that version is in reference to. But this module should work for most FB versions as far as contact syncing, but may or may not include high-res contact picture syncing. As of FB version 46.0.0.26.153, high-res pics is not working. But wait long enough and it might come back in a future version.
[Xposed Framework Modules] Thaodan:
I mean android 5.1, does this module works with this version.
[Xposed Framework Modules] agentdr8:
It should. I've got 5.1.1 on my G2.
[Xposed Framework Modules] dejanxxxx:
I have latest version from Google Play.
[Xposed Framework Modules] Ragarianok:
I've installed Xposed and XFBSync on CM12.1 and I've noticed that while there's an Contact Sync option in Settings/Accounts, there's no actual sync option in the Facebook app. Also, nothing happens when Contact Sync toggle is switched on.
[Xposed Framework Modules] agentdr8:
Try force closing FB and then reopen it.
[Xposed Framework Modules] Ragarianok:
Did that already.
[Xposed Framework Modules] JRJ442:
Yeah, all the options seem to have disappeared for me somehow too. I was using v41 of Facebook. Clean flashed the ROM, they still wouldn't show up no matter what. Could Facebook have done something server side to make those options disappear?
[Xposed Framework Modules] agentdr8:
Tbh I'm not quite sure how or why the option disappeared. I'm on v46.0.0.26.153 and the contact sync option still shows up under app settings.
[Xposed Framework Modules] Ragarianok:
Hm. Uninstalling and installing (but make a backup!) to see if it no longer syncs.
[Xposed Framework Modules] Ragarianok:
I think it can be confirmed that Facebook removed the ability to sync contacts from their end. I installed an older version of the FB app and tried both XFBSync and a modded ContactsProvider.apk and yielded no results. As I mentioned before, the sync toggle is there in Android Settings/Accounts/Facebook that basically does nothing when flipped on, but there's no option under App Settings in the app itself. Looks like it's over.
[Xposed Framework Modules] ts_mpls:
Using what FB version? I have 47.0.0.25.125 installed and I still see the sync option and it appears to be working.
[Xposed Framework Modules] Ragarianok:
Try clearing Contact Storage and Facebook data and try to resync.
[Xposed Framework Modules] THEVAN3D:
what is the latest version of fb app that supports high qualitu picture sync?
[Xposed Framework Modules] agentdr8:
I think something prior to v45.
[Xposed Framework Modules] JRJ442:
[MENTION=434511]agentdr8[/MENTION] I saw on Android Authority this morning that Facebook will be slowly rolling out updates to include short videos profile pictures. Do you think that's why some of us have suddenly lost sync options with the module? I think some of that stuff they can control on their server side. I remember about a year ago when they were testing the slightly new UI...some people had it, and some didn't. Even using the same exact app version number.
[Xposed Framework Modules] itandy:
Just upgraded Facebook app today and contact sync is back again. The option is still missing in settings but new contacts are synced successfully.
[Xposed Framework Modules] agentdr8:
FB definitely has the ability to muck with how the app does contact syncing on the server end. I doubt that they could force the option to disappear though, not without pushing out a client update. But I could be wrong.

Meddling FB devs strike again! :D
[Xposed Framework Modules] RandomPooka:
Didn't contact sync get moved to Messenger?
[Xposed Framework Modules] DSouljah:
Pos Facebook is definitely doing something behind the scenes. I've been on version 41 with contact sync and hi res, but all the sudden it stopped functioning. So I reinstalled my backup app and data, and it was back. However, Facebook prompted me to login, so I did. Then my settings vanished, hasn't been back. So I know their pushing stuff in the background.
[Xposed Framework Modules] JRJ442:
Pretty much the same thing happened with me. I was using 41 because it seemed flawless as far as syncing with this module goes. I clean flashed a new ROM, no picture sync settings would show up. Reflashed my old ROM. Still gone. Now I'm using Sync.Me, I hate it. Lol. Hopefully the sync settings will show up for us again sometime soon. But after seeing that article on android authority, I'm having my doubts.
[Xposed Framework Modules] memnochlv:
Add a check for /config/gk/values/fb4a_contactsync_enabled and setting it to 1 as well, might fix it, when I manually add / change that, and if course these: /config/gk/values/fb4a_contactsync_highres and /config/gk/values/contacts_sync_android, all to 1 it tends to work until I close and reopen facebook.
[Xposed Framework Modules] agentdr8:
I'll add that config setting to the mod and push a new release later today.

EDIT: Uploaded to repo and OP. After installing the new module, removing FB account, and clearing FB data, the high-res pic option returned on v47.0.0.25.125. But it doesn't appear to actually download high-res contact pics.
[Xposed Framework Modules] JRJ442:
I went back to trusty version 41 with the updated module, sync and high-res pics options are back now. And it does appear to sync them in high-res.
[Xposed Framework Modules] agentdr8:
It seems the high-res pics are syncing again in the latest v48.0.0.28.137 with the mod.
[Xposed Framework Modules] freedomtigers:
at-last everything seems to be OK

fb synced perfectly now

LITTLE PROBLEM IS PHOTO IS LOW RES....

THAT IS OK

thanx man this methods works in my canvas HD A116

i don't know how to express my thanks to you

i don't have any words to express it

i'm searching over Google and XDA for months

none of themes not worked

i'm totally ****ed

now you just stopped there non seance

thanx man thanx allot

can i post a link to this thread on my blog ? http://www.freedomtigersft.blogspot.in/

i think that way i can help others to find this post......:D
[Xposed Framework Modules] Persechini:
Oops, now I repeated the procedure from the beginning

2014-06-24 08:36:11] XFBS: in facebook platformstorage class
-----------------
24/06/2014 11:36:33 UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'KTU84P' with fingerprint 'google/razor/flo:4.4.4/KTU84P/1227136:user/release-keys'
Loading modules from /data/app/com.dr8.xposed.XFBSync-1.apk
Loading class com.dr8.xposed.XFBSync.Mod
[2014-06-24 08:36:55] XFBS: init contacts providers package
[2014-06-24 08:36:55] XFBS: db is open and not locked, querying table
[2014-06-24 08:36:55] XFBS: Adding is_restricted column to database
[2014-06-24 08:36:55] XFBS: touching dbmodded file
[2014-06-24 08:37:02] XFBS: in facebook platformstorage class
[2014-06-24 08:37:04] XFBS: in facebook platformstorage class
[2014-06-24 08:37:18] XFBS: init contacts providers package
[2014-06-24 08:37:18] XFBS: db has been modded, no need to check
[2014-06-24 08:37:38] XFBS: init contacts providers package
[2014-06-24 08:37:38] XFBS: db has been modded, no need to check
[2014-06-24 08:39:34] XFBS: in facebook platformstorage class
[2014-06-24 08:39:49] XFBS: init contacts providers package
[2014-06-24 08:39:49] XFBS: db has been modded, no need to check
[2014-06-24 08:39:49] XFBS: found our a class, setting bool to true
[2014-06-24 08:39:56] XFBS: in facebook platformstorage class

Enviado de meu Nexus 7 usando Tapatalk
[Xposed Framework Modules] agentdr8:
That log looks good. And you've checked the Facebook account under Settings->Accounts? It should show the last time they synced.

If you select just the FB contacts to display in People, it doesn't show any?
[Xposed Framework Modules] agentdr8:
I believe that's a limitation in the native FB app.

Sure thing.
[Xposed Framework Modules] agentdr8:
It's apparently been in the FB app forever, just Google had blocked it from functioning due to some sort of disagreement (most likely when G+ came about). I don't believe it has ever had the ability to sync high-res profile pictures though.
[Xposed Framework Modules] Persechini:
It syncs regularly just fine, but showing only facebook contacts in the contacts app it shows 0 contacts. One thing is that on the facebook app if I choose to sync all contacts if goes back to only existing names once I confirm, so only disabling and syncing existing names stick once I choose the option. But my google contacts are populated, so it should show up a lot of people with only existing names selected
[Xposed Framework Modules] agentdr8:
Very odd. I did find an issue with the sync setting in FB, where if you checked Sync with existing, and then went to People and selected to display Custom, then FB, then picked All contacts, it would change the setting in FB to Sync all.

If you can, post up your /system/priv-app/ContactsProvider.apk, and also the CREATE TABLE row from your contacts2.db. You can do that via command line:

sqlite3 -cmd ".dump raw_contacts" contacts2.db | grep "CREATE TABLE"
(exit by entering .q)
[Xposed Framework Modules] Persechini:
https://www.dropbox.com/s/p3hex6e8vg0s4k2/ContactsProvider.apk

Here is the contacts app

The command I couldn't run, is sqlite3 supposed to be included in busybox? I would need to know how to get this applet

Enviado de meu Nexus 7 usando Tapatalk
[Xposed Framework Modules] agentdr8:
sqlite3 is a standalone binary usually found in /system/xbin. I'm not sure if it comes with a busybox install, or if it's supposed to come with the rom itself.

EDIT: I guess it comes from building source, and not normally installed on stock roms. I've attached the one compiled for arm here. Rename to sqlite3 (just remove the .zip extension).
[Xposed Framework Modules] Persechini:
I copied sqlite to the xbin folder, deleted the extension, changed permissions, reboot, and I get the message:

"Error. unable to open database "contacts2.db": unable to open database file"
[Xposed Framework Modules] agentdr8:
You need to su to root prior to running the sqlite3 command.
[Xposed Framework Modules] Persechini:
Ok, I did this, but what result should I expect? nothing else appears on the terminal after the command

forget it, I think it still can't get sqlite3 to work
[Xposed Framework Modules] agentdr8:
You should see something like this if the command is successful:

CREATE TABLE raw_contacts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_id INTEGER REFERENCES accounts(_id),sourceid TEXT,raw_contact_is_read_only INTEGER NOT NULL DEFAULT 0,version INTEGER NOT NULL DEFAULT 1,dirty INTEGER NOT NULL DEFAULT 0,deleted INTEGER NOT NULL DEFAULT 0,contact_id INTEGER REFERENCES contacts(_id),aggregation_mode INTEGER NOT NULL DEFAULT 0,aggregation_needed INTEGER NOT NULL DEFAULT 1,custom_ringtone TEXT,send_to_voicemail INTEGER NOT NULL DEFAULT 0,times_contacted INTEGER NOT NULL DEFAULT 0,last_time_contacted INTEGER,starred INTEGER NOT NULL DEFAULT 0,pinned INTEGER NOT NULL DEFAULT 2147483647,display_name TEXT,display_name_alt TEXT,display_name_source INTEGER NOT NULL DEFAULT 0,phonetic_name TEXT,phonetic_name_style TEXT,sort_key TEXT COLLATE PHONEBOOK,phonebook_label TEXT,phonebook_bucket INTEGER,sort_key_alt TEXT COLLATE PHONEBOOK,phonebook_label_alt TEXT,phonebook_bucket_alt INTEGER,name_verified INTEGER NOT NULL DEFAULT 0,sync1 TEXT, sync2 TEXT, sync3 TEXT, sync4 TEXT, is_restricted INTEGER NOT NULL DEFAULT 0);
[Xposed Framework Modules] M66B:
Can you please post the source code for this nice Xposed module?

(I don't use any Xposed module I didn't compile myself due to security risks)
[Xposed Framework Modules] onesolo:
I'm using Ubersync and the photos can be download in hi-res...

The disadvantage from ubersync is that doesn't add any FB detail, like email or phone, it was removed on v2.0, apparently due to some FB requirement... The disadvantage from this xposed module is that, at least now, it only downloads a low-res photo, like the FB app did before...

Can this in the future be able to download a hi-res of the profile pic??

At this moment I'm continuing with Ubersync... many of my FB friends don't share any emails or phones on their FB contacts...

By the way, on the installations steps, I didn't remove my google account, step 3, and all did fine... I think that is pretty useless... all is needed, is to be removed any facebook account or like me, the Ubersync account, from Accounts syncs, so that any facebook contact can be immediately un-merged from the main google contact. No need for that extra step...
[Xposed Framework Modules] Riekr:
are you using n5 stock? i'm unable to get it working, fb contacts are not shown and fb app reverts to "existing" from "all" contacts in settings.
[Xposed Framework Modules] mmerlone:
Followed all previous steps with success, but just can't find this option on Facebook app. I see "Application config" and "Account config" on FB menu, but none has any option to sync contacts. If I go to settings -> accounts -> Facebook, no option either. Can someone help me?

Thanks in advance.
[Xposed Framework Modules] weirdsciencex:
I have exactly the same issue. The version shown on the screenshots looks really old.

Sent from my Nexus 7
[Xposed Framework Modules] Persechini:
I'm really not being able to get sqlite3 permission on my N4 and N7, and this guy with the N5 seems to be in the same spot. There must be some extra step to adjust permissions on Nexus devices that don't come with sqlite3 installed. I tried copying the executable to /system/xbin, tried symlinking the one that I found on rom toolbox folder on the sdcard, game su permissions, tried via adb shell from windows, and still can't get permissions to work properly

EDIT: I copied the database to my desktop and browsed it there, I get

`is_restricted`	INTEGER NOT NULL DEFAULT '0'
[Xposed Framework Modules] Riekr:
here is the output as i have the same problem on stock n5 (wich doesn't have sqlite3 by default):

CREATE TABLE raw_contacts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_id INTEGER REFERENCES accounts(_id),sourceid TEXT,raw_contact_is_read_only INTEGER NOT NULL DEFAULT 0,version INTEGER NOT NULL DEFAULT 1,dirty INTEGER NOT NULL DEFAULT 0,deleted INTEGER NOT NULL DEFAULT 0,contact_id INTEGER REFERENCES contacts(_id),aggregation_mode INTEGER NOT NULL DEFAULT 0,aggregation_needed INTEGER NOT NULL DEFAULT 1,custom_ringtone TEXT,send_to_voicemail INTEGER NOT NULL DEFAULT 0,times_contacted INTEGER NOT NULL DEFAULT 0,last_time_contacted INTEGER,starred INTEGER NOT NULL DEFAULT 0,pinned INTEGER NOT NULL DEFAULT 2147483647,display_name TEXT,display_name_alt TEXT,display_name_source INTEGER NOT NULL DEFAULT 0,phonetic_name TEXT,phonetic_name_style TEXT,sort_key TEXT COLLATE PHONEBOOK,phonebook_label TEXT,phonebook_bucket INTEGER,sort_key_alt TEXT COLLATE PHONEBOOK,phonebook_label_alt TEXT,phonebook_bucket_alt INTEGER,name_verified INTEGER NOT NULL DEFAULT 0,sync1 TEXT, sync2 TEXT, sync3 TEXT, sync4 TEXT , is_restricted INTEGER NOT NULL DEFAULT 0);
[Xposed Framework Modules] JRJ442:
Confirmed. Just updated. ?

Edit: Sync and high-res options disappeared again with v48. I'm gonna go back to v41 and see if they disappear with that one.
[Xposed Framework Modules] StephenMilone:
Anyone have success with this on lollipop Moto X Style? I followed the steps and I never saw a contact sync option in the FB app, but did turn on contact sync for FB via settings/accounts and I do see facebook account in the contacts app, however zero items show for that set of contacts. did do something wrong or is it just not supported? thanks

update facebook v49 has syncing options and my contacts synced! woo
[Xposed Framework Modules] agentdr8:
They're back with v49 :D For how long, I don't know.
[Xposed Framework Modules] THEVAN3D:
the options to sync pics are gone from the app .. they are no longer in facebooks settings page..

latest v49 from play store..
[Xposed Framework Modules] agentdr8:
Force stop FB, remove your FB account from Settings -> Accounts, then remove FB data. Launch FB and re-login to your account, go to app settings, and both options should be there.
[Xposed Framework Modules] meiser:
Hi,

I'm running CM12.1 with Xposed v75 and XFBSync 1.2.5. But I don't have any sync options in the facebook app v49.0.0.12.152 even though I enabled contacts sync in the account settings.

What shall I do to get contacts sync work?

EDIT: Works now, contact sync settings appeared magically after some time.

Thanks,

meiser
[Xposed Framework Modules] THEVAN3D:
nope. still nothing there.

EDIT: it appeared after a minute or two. thanks a lot.
[Xposed Framework Modules] Ragarianok:
Finally got the sync to show up. Waited a couple minutes after logging in FB, stopped app, then opened it back up. Contact Sync + Hi-def now there.
[Xposed Framework Modules] Ragarianok:
Screenshot after getting module to work with FB v50.
[Xposed Framework Modules] Ragarianok:
Hm. It looks like it disappears on reboot. :/
[Xposed Framework Modules] Josty:
Same for me, but hope it won't stop syncing contacts
[Xposed Framework Modules] agentdr8:
I ended up going back to v45. High-res pics and contact sync still work. v51 removes the contactsync classes again.
[Xposed Framework Modules] themanuf:
I have now tried facebook v50,48,45, and 41. I can never get the settings to show up. Those of you who said it magically showed up after a couple minutes, all you did was force close fb and reopen? I have tried that so many times now. Also, are the messages in the xposed log file at all useful to helping me figure out why it isn't working?
[Xposed Framework Modules] agentdr8:
Yes, the xposed log would be helpful. If you see any errors pertaining to com.facebook.contactsync.PlatformStorage, it's likely the version you're using does not have the proper class(es) for contact syncing. Are you on android 5.x or 4.x?
[Xposed Framework Modules] themanuf:
There are multiple ClassNotFoundException and NoClassDefFoundError messages. I am on 4.4.4 (CM-11 on a Nexus 7 to be specific).
[Xposed Framework Modules] agentdr8:
Per the OP:

FB removed all contact sync classes in the KK version of their app after v14, and I have yet to see any posts to the contrary. And it's out of scope for this module to try and recreate that functionality.
[Xposed Framework Modules] themanuf:
Sorry, missed that line in the OP. I saw the "tested on CM11 4.4.4" in the opening paragraph and assumed I was fine. Might just flash LP to do a quick sync to update my pictures and then go back to KK. Thanks for the replies.
[Xposed Framework Modules] themanuf:
I just wanted to follow up and say it worked wonderfully on the stock 5.1.1 Nexus 7 image with the latest fb (v51)downloaded from the play store. I haven't rebooted to see if the options disappear, but I now have nice hi-res images attached to my contacts. Thank you!
[Xposed Framework Modules] Toteppp :D:
So, this does not work on KK unless I installed 14> version of Facebook? Are there ways to fix it? (not updating to Lollipop ofcourse)
[Xposed Framework Modules] agentdr8:
Not by me there isn't. Facebook would have to reintroduce the contactsync classes into their newer apps for the older API versions.

The alternative is to use a 3rd-party app like Haxsync, Sync.ME, etc.
[Xposed Framework Modules] Toteppp :D:
I think it's working! Dunno if its the Module or the Facebook app :D

Here's the screenshot.

I'm on the latest Facebook version, using Note 2 with MIUI based on stock ROM.
[Xposed Framework Modules] Vankog:
[MENTION=6508322]Toteppp :D[/MENTION]:

I am not sure about MIUI, however if I remember right stock Samsung Roms are still supported by Facebook by default.

(anybody info about this?)
[Xposed Framework Modules] Toteppp :D:
^ [MENTION=2148774]Vankog[/MENTION]:

It's gone again after rebooting my phone. :(
[Xposed Framework Modules] Josty:
So, v45 still have the sync contacts option in app settings even after reboot?
[Xposed Framework Modules] agentdr8:
Nope, they disappeared too. I'll probably keep going backwards in versions until I find one that works. v41 was a solid one.
[Xposed Framework Modules] Williz:
What's the last working facebook version? I'm running latest facebook on zenfone2, I get the sync option in accounts, facebook but not in the app itself
[Xposed Framework Modules] agentdr8:
If you're on Android 5+, try v41.
[Xposed Framework Modules] Williz:
Cheers, installed v41 and it works fine :)
[Xposed Framework Modules] Josty:
Is it showing Contact Sync in FB after reboot?
[Xposed Framework Modules] Josty:
Well, I'll reply to my question myself. With FB v41.0.0.0.13 in my case Contacts Sync options in the app disappears from time to time after reboot, but you can turn it back by:
[Xposed Framework Modules] memnochlv:
Is syncing and high res available in the current version (53) for lollipop (5.0.x for me) available?
[Xposed Framework Modules] Thaodan:
I get this error, I tried everything that I should do in the description. The version 55 caused the issue I think.
[Xposed Framework Modules] agentdr8:
I have no control over what Facebook does to their app, and this includes whether or not the proper contact sync classes are included. If they are removed, then there's nothing that can be done, other than to go backwards in versions until you find one that works. I would highly suggest sticking with v41.
[Xposed Framework Modules] shuli81:
Can someone provide a link to a version of that has the elusive contact sync classes. I have tried a couple that were mentioned some posts back but no luck. Thanks
[Xposed Framework Modules] thisguy81:
Will this work on the new Xposed for MM?
[Xposed Framework Modules] agentdr8:
Try this one.
[Xposed Framework Modules] agentdr8:
Good question. I haven't tested it yet on my 5x, but will do so shortly and report back.

EDIT: YES! v41 that I linked to above works with the module to enable contact syncing and high-res pictures.
[Xposed Framework Modules] SirHanni:
Hey,

I somehow dont manage to get the sync contacts button in my facbook app settings. Where do I enable the app_process from within Xposed Installer? Maybe thats the problem?

I am using a Galaxy S4 VE (I9515) with CM12.1. I do everything otherwise as written till point 7 where I cant find this option.
[Xposed Framework Modules] onesolo:
I'm not asking for any ETA, but is it going to be possible to have this module working for MM and actual FB versions ?!
[Xposed Framework Modules] agentdr8:
Open Xposed Installer, go to Framework, and then Install/Update. Then back out, go to Modules, put a check on XFBSync, and reboot.
[Xposed Framework Modules] agentdr8:
It already does work for MM, and an actual version of FB, just not the latest. That will likely never happen, unless Facebook decides to put the contact sync classes back in.
[Xposed Framework Modules] SirHanni:
The button is greyed out !?