Single Sign On for Android Facebook

后端 未结 2 1632
旧时难觅i
旧时难觅i 2021-02-06 07:22

Friends,
I need to know much about Single Sign On support for Facebook. I have two applications on my device and I have to post the feed. I login the very first time f

相关标签:
2条回答
  • 2021-02-06 07:37

    Make sure both apps reference the same Facebook app client_id and client_secret. Once the user authorizes one of your Android apps, store their access_token, and share it between both apps.

    0 讨论(0)
  • 2021-02-06 07:39

    Perhaps see

    Preserving login session across multiple Android apps

    and then

    Write a private access file to another app's files directory

    My solution is to write the login information (I guess access_token) to a file on both apps and make each app check it's file and the other app's file modification time. the one modified most recent wins.

    You would have to write up some code for that..

    0 讨论(0)
提交回复
热议问题