Currently am using Graph Explorer to get a short-lived user access token and than converting it to a extended token(60 days) by a call to facepy get_extended_access_token method.
Now. consider the scenario where my user access token becomes invalid because of either user logging out or the token expires itself. So, in both the cases I need to get a new user access token because get_extended_access_token requires access_token so that it can extend it.
So, my question is how to retrieve this token using python? Is there any particular url which I can send a request and it will return a new/updated token in resonse.
Update:
So, after following this post and making a request to
https://graph.facebook.com/oauth/access_token?client_id=xxxx&client_secret=yyyy&grant_type=client_credentials
I got this token which I believe is an app access token
access_token=123456789|12abcdef234 #changed from original
But what I need is an user access token through which I can read my mailbox.