Reputation: 9
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
Reputation: 6368
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.
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