Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extend my facebook access_token with Python?

I already have an access_token but it's a short_lived_token. For my application I need a long_lived_token, and I know how to get it in java, but I'm using Python.

Does anybody know how to get a long_lived access_token in python? Or how to update my short_lived to a long_lived in python?

like image 460
Kyra Avatar asked Aug 09 '26 05:08

Kyra


1 Answers

There is a method extend_access_token defined in the Python SDK which would, as per internal documentation

Extends the expiration time of a valid OAuth access token.

Which would be the thing you are looking for.

like image 51
Anvesh Saxena Avatar answered Aug 10 '26 22:08

Anvesh Saxena