Getting Access Tokens
An access token is a key to your Facebook ad accounts. Using them one can create new campaigns, view statistics, etc. All of these actions are done using Facebook’s Marketing API. This is how to get a token:
- Login to your Facebook account and go to https://www.facebook.com/adsmanager/manage/campaigns/
- Open your browser’s Dev Tools by pressing F12 on your keyboard and go to Console tab.
- Enter this text there: window.__accessToken
- Now your token will be displayed. Usually it starts with EAABsb. Copy it somewhere, we’ll need it a bit later.