How Instagram for Android uses offline_access?

浪子不回头ぞ 提交于 2019-12-13 21:42:59

问题


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)


回答1:


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,

see scenario.4 under https://developers.facebook.com/roadmap/offline-access-removal/

example; 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



来源:https://stackoverflow.com/questions/10649297/how-instagram-for-android-uses-offline-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!