Unable to extend Facebook access token to 60 days

I am having trouble to extend the expiration time of Facebook access token to 60 days. I was reading several articles on Facebook developer page: https://developers.facebook.com/roadmap/offline-access-removal/

Specifically, I am using Facebook C# SDK, and when I ask for authentication, I am doing FacebookClient.GetLoginUrl(), and work on the call by to get the access token.

Right after that, I try to use FacebookClient.GetAsync("oauth/access_token") to extend the expiration time by using the following URL pattern

https://graph.facebook.com/oauth/access_token?             
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN 

However, I don't see the expiration time of the access_token being extended. I did set my app to use deprecated offline_access... Anyone have experience with Facebook C# SDK and could give me some thoughts on this?

Did I misunderstand the meaning of "extend expiration time" means in Facebook doc?

Thank you very much!


您正在进行的调用将返回一个访问令牌,很可能与您传递的访问令牌不同。换句话说,您现有的令牌不一定会延长,如果需要,您可能会得到一个新的令牌。


确保你启用了增强的oauth对话框,并且你的redirect_uri指向了你的网站。

链接地址: http://www.djcxy.com/p/10570.html

上一篇: Visual Studio坚持使用UnitTestFramework 10.0.0.0

下一篇: 无法将Facebook访问令牌扩展到60天