how to refresh an oauth token when using the Facebook iPhone SDK

前端 未结 6 2024
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 07:18

I\'m using the Facebook SDK for iOS in my app: http://github.com/facebook/facebook-ios-sdk

The oAuth token expires after about 2 hours. How can I \"refresh\" the oAuth

6条回答
  •  时光取名叫无心
    2021-02-04 08:20

    Facebook iOS SDK doesn’t handle the session storage. FBSessionDelegate is a callback interface that your application should implement. it's methods will be invoked on application's successful login or logout.

    See the example application facebook-ios-sdk/sample/DemoApp/Classes/DemoAppViewController.m for fbDidLogin, fbDidNotLogin and fbDidLogout methods

提交回复
热议问题