Member-only story
Python HOW: Making Facebook API calls Using facebook-sdk
Learn how to obtain a permanent Page Access Token for your pages using the official facebook-sdk package. Updated Oct 2020

Our aim in this article is to get a Permanent Token. We will get a Short-Lived Token manually only once, then use Python to exchange that Token with a Permanent one. FB states that:️
You should not depend on these tokens lifetimes remaining the same as Access Tokens can be invalidated or revoked anytime 💀
This might be the case if we make frequent requests using the same Token. Therefore, at the start of each API calling session, we should run the Python code to refresh our Permanent Token
Create an account for developers 🎡
To do this, you only need to be a verified Facebook user. Go to the developers page ▶ create an account ▶ My Apps ▶ Create App ▶ Manage Business Integration ▶ Fill in the App details


