For the Facebook application that I create, it takes me longer than the default of 1 - 2 hours.
I do not want to use "offline_access" as it disconnects people from registration in the application and is now depreciating.
The developer's roadmap refers to "fb_exchange_token", which will extend the validity of the access token up to 1 month.
Flow:
This is great for all new users and for users who remove the application from their Facebook account and re-add it, but this does not work for our existing client base.
I tried all sorts, including adding other permissions to login the script to force the authentication window, but no luck.
I added the correct advanced / port setting for the Facebook app as described in the documentation. It doesn't seem to help much except the dev blog.
Any help would be greatly appreciated.
FYI: I use the most advanced PHP SDK, and the code to get a new access token is a standard cURL request pointing to the following URL:
https://graph.facebook.com/oauth/access_token?client_id= {APPID} & client_secret = {APPSECRET} & grant_type = fb_exchange_token & fb_exchange_token = {ACCESSTOKEN}
Thanks again
bpneal
source share