1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

3rd party apps syncing with facebook?

Discussion in 'Droid X Hacks' started by transfan, Dec 2, 2010.

  1. transfan
    Offline

    transfan New Member

    Joined:
    Nov 12, 2010
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    0
    So far the only way I've found to sync 3rd party apps (dialer one for instance) with your facebook contacts is the following line of code

    sqlite3
    /data/data/com.android.providers.contacts/database
    s/contacts2.db "CREATE TRIGGER unrestrict_new_data
    AFTER INSERT ON raw_contacts BEGIN UPDATE
    raw_contacts SET is_restricted=0 WHERE _id=NEW._id
    and NEW.is_restricted!=0 and NEW.account_type in
    ('com.facebook.auth.login'); END; CREATE TRIGGER
    unrestrict_updated_data AFTER UPDATE OF
    is_restricted ON raw_contacts BEGIN UPDATE
    raw_contacts SET is_restricted=0 WHERE _id=NEW._id
    and NEW.is_restricted!=0 and NEW.account_type in
    ('com.facebook.auth.login'); END; UPDATE
    raw_contacts SET is_restricted=0 WHERE
    is_restricted!=0 AND account_type in
    ('com.facebook.auth.login');"



    However, droid x doesn't seem to have sqlite3 in the term emulator? When I try it says:

    sqlite3: not found


    Any other ways to do this? any help at all?

    thanks!