Calling logout function of facebook ios sdk is not clearing user Credentials

后端 未结 2 1595
梦如初夏
梦如初夏 2020-12-11 07:15

While implementing facebook SSO, calling logout function of facebook ios sdk is not clearing user Credentials and it does not ask to login next time.

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 07:46

    I've experienced the same, however I think it's not a bug, confusing though.

    Facebook places a cookie in the mobile safari which refers to a valid session or maybe an access token. If you logout with the Facebook lib it clears the access token and all cookies of the webview used not in mobile safari. Actually you can't do that by code. Now if you come back and mobile safari opens up, there is still a valid session and you are logged in again without entering credentials.

    You may file a bug to ask if Facebook can invalidate the access token server side.

提交回复
热议问题