user3293879
user3293879

Reputation: 9

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

I have offline access the instagram REST API,

But expire the instagram access token.

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

(or)

How do I get an Instagram access token without user login ?

Thanks Advance...!!!

Upvotes: 0

Views: 4885

Answers (1)

Chris Wesseling
Chris Wesseling

Reputation: 6368

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

From the API docs:

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.

So all Instagram access tokens are "permanent" until either the user or Instagram expires it.

How do I get an Instagram access token without user login ?

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.

Upvotes: 2

Related Questions