The session has been invalidated because the user has changed the password

后端 未结 1 1358
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 10:18

Implementing a PhoneGap app for Android and iOS, the app is using Facebook Connect and the PhoneGap Facebook Connect Plugin (https://github.com/davejohnson/phonegap-plugin-f

相关标签:
1条回答
  • 2020-12-22 11:00

    Ok, in the end I found out that the root cause of my problem was that Android and iOS facebook SDK's are handling the offline_access differently, in the value that they set in the 'expires' parameter in the session object.

    In iOS, 'expires' will be set to a date far far in the future (4001-01-01), while in Android 'expires' will be set to 0. This made my comparison (expired < today) fail (I was doing a date parse to milliseconds), and the session was always 'invalid'.

    (then in my case i was always doing a logout if the session was invalid, which made my token be invalid for real when trying it in the browser afterwards.. doh..)

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