问题描述
最近Facebook拥有德precatedoffline_access。但是,我发现,Instagram的应用程序为Android仍然使用了。怎么可能是可能的?我正在开发一个应用程序,将从移动用户进行身份验证,并使用该权限(可根据用户的操作)后张贴到用户的城墙,从服务器
Recently Facebook has deprecated 'offline_access'. But, I find that Instagram app for Android still uses that. How could that be possible? I am developing an app that would authenticate the user from mobile and use that permission later to post to user's wall from server (according to user's actions)
推荐答案
您仍然可以通过认证过程,并不会GETT任何特定的错误offline_access'的一部分,在任何情况下,Facebook将回报你一个短暂的令牌。
在另一方面,可以在短期令牌延伸到60天之一,
you can still pass 'offline_access' part of authentication process and wont gett any specific errors, in any case Facebook will return you a short-lived token.
on the other hand, you can extend the short-lived token into 60days one,
看到在
例子;
<一href=\"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\" rel=\"nofollow\">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
这篇关于如何对Instagram的Android使用offline_access?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!