简体   繁体   English

如何在PHP中使用REST API获取Instagram永久访问令牌?

[英]How do I get an Instagram permanent access token using REST API in PHP?

I have offline access the instagram REST API, 我有离线访问Instagram REST API,

But expire the instagram access token. 但是对于Instagram访问令牌到期。

How do I get an Instagram permanent access token using REST API in PHP? 如何在PHP中使用REST API获取Instagram永久访问令牌?

(or) (要么)

How do I get an Instagram access token without user login ? 如何在没有用户登录的情况下获得Instagram访问令牌?

Thanks Advance...!!! 谢谢提前...... !!!

How do I get an Instagram permanent access token using REST API in PHP? 如何在PHP中使用REST API获取Instagram 永久访问令牌?

From the API docs : 来自API文档

Note that we do not include an expiry time. 请注意,我们不包含到期时间。 Our access_tokens have no explicit expiry, though your app should handle the case that either the user revokes access or we expire the token after some period of time. 我们的access_tokens没有明确的到期,但您的应用程序应该处理用户撤销访问权限或我们在一段时间后使令牌过期的情况。

So all Instagram access tokens are "permanent" until either the user or Instagram expires it. 所以所有Instagram访问令牌都是“永久性的”,直到用户或Instagram过期。

How do I get an Instagram access token without user login ? 如何在没有用户登录的情况下获得Instagram访问令牌?

You shouldn't be able to, because that would mean a security breach. 你不应该,因为那将意味着安全漏洞。 If I revoke the token I authorized you to have, you shouldn't be able to just get a new one without my approval. 如果我撤销我授权你拥有的令牌,你就不应该在未经我同意的情况下获得新令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM