Introduction
There are two ways to connect Meta to Pencil:
Directly from Pencil using OAuth
Grant Access through Pencil Business Manager and have Pencil make the connections
Directly from Pencil
Navigate to Settings > Integrations.
Find ‘Meta’ at the top of the list and click ‘Connect your ad account(s)’
You can choose whether you want to toggle on/off:
Block write access
Don't pull spend data
Don't pull impressions
You will be prompted to sign into your Facebook Business Account
Select the businesses you want Pencil to access and click Continue.
Select the pages you want Pencil to access and click Continue.
Review the permissions and click on Save followed by Got It.
A popup with the list of ad accounts will be shown. Select the ad accounts to which ads need to be exported and insights need to be pulled and click Save.
The status will be shown as Connected and Predictions Trained. The Ad Account(s) are successfully connected and ads can be exported.
The API parameters that are pulled from Meta can be found here
Access via Pencil Business Manager
This method requires the person granting access to be the admin of Meta Business portfolio and the Business Portfolio owns the resources (ad accounts, datasets, pages) for which access has to be shared.
Login to the Business Portfolio settings and navigate to the Partners section.
Click the Add button and select 'Give a partner access to your assets'.
In the popup enter the Pencil Business ID 818242561706251 and choose Next.
Choose the resources you wish to assign access to and then click the Assign Assets button.
Once the resources are assigned please notify the Pencil team to enable your connections to Meta
Additional Meta resources can be found here