We are almost done. In your app dashboard, click Tools → Graph API explorer, which should lead you to the page similar to the image below. Click the “generate access token”, and you will receive a unique token from Facebook through which you can make API calls (communicate with Facebook servers). In the upper input field (next to the submit button), enter the following and press “submit”:
me?fields=id,name,adaccounts{name}
You should see a list of all ad accounts you have access to, along with their respective names. The “Name” property should be specified explicitly because Facebook works with IDs (a technical detail). If you get an error message, it’s possible that you should add additional permissions. Click the dropdown button for “Add a permission”, and add “ads_management”, in order to have the rights necessary to execute the call. For each new permission added, new access tokens will have to be generated.
No comment yet, add your voice below!