I’m using the Facebook iOS SDK. In my code I have authorized my app with the default permissions, so my session is valid until the expiration date is reached. However, after the expiration date is reached, I attempt to reauthorize in order to “refresh my OAuth token”, as asked before.
However, when I attempt to reauthorize, it displays a dialog saying I have already authorized my app, even though I expect it to just update my OAuth token without a dialog. According to facebook, this is possible:
When you redirect the user to the auth dialog, the user is not
prompted for permissions if the user has already authorized your
application. Facebook will return you a valid access token without any
user facing dialog.
However, I do get a dialog and I’d like to know how I can refresh the access token without getting the dialog.
A recent commit in the Facebook iOS SDK project included an “extend access token” method for extending an expired token.
More information about this and the deprecation of “offline_access” is in Facebook Developer’s blog post.