Reputation: 802
I want to check whether the access token which i receive after authenticating and redirecting to the app is valid after some times.
Consider i have an access token generated using this URL.
According to the document the access token is valid forever, and in case if the user changes his password or else if he revokes the access in future, the access token get invalidated automatically,
How do i check whether the access token which is valid for that instant of time?
Upvotes: 0
Views: 1928
Reputation: 11
You need to do an action with your api, for example, if the action was follow other instagram account, will return a
"data": {
"outgoing_status": "requested"
}
if the token was invalid, will return
"meta": {
"error_message": "The access_token provided is invalid."
}
Upvotes: 1