如何对Instagram的Andr​​oid使用offline_access? [英] How Instagram for Android uses offline_access?

查看:98
本文介绍了如何对Instagram的Andr​​oid使用offline_access?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近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,

看到在 https://developers.facebook.com/roadmap/ scenario.4离线访问去除/

例子;
<一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的Andr​​oid使用offline_access?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆