This uses the facebook-php-business-sdk for Facebook Marketing API.
-
Create an app at developers.facebook.com
-
Copy the App Id and paste it into env
FB_APP_ID
-
On the menu, go to settings and get "App Secret" copy and paste this into the env
FB_APP_SECRET
-
Add the product Marketing API to your app, selecting permissions you would like to grant the app and click "Get Token".
-
Copy and paste the token shown into the env
FB_ACCESS_TOKEN