Kyra
Kyra

Reputation: 173

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?

Upvotes: 3

Views: 869

Answers (1)

Anvesh Saxena
Anvesh Saxena

Reputation: 4466

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.

Upvotes: 3

Related Questions