<@U04S8PLJWMT> Hi, i am going to build a new faceb...
# replication-ask-ai
a
@kapa.ai Hi, i am going to build a new facebook connector on my local airbyte by forking existed connector while i create a source, i need to enter the Ad account ID and access_token and create an APP on FaceBook. what i want to ask you: 1. when the APP on FB is completed with review and published, i can use it? 2. the following permissions are mandatory? ads_management, ads_read, read_insights, business_management the table shows what i pull from Facebook
k
Facebook Marketing Connector — App Review & Permissions 1. Can you use the app once it's reviewed and published? Yes — once your Facebook App passes review and is published, you can use it with the connector. However, getting approved can be challenging. Key tips from community experience: • Request Advanced Access for
ads_management
and
ads_read
(and optionally
pages_read_engagement
,
pages_show_list
if needed). • Provide a clear explanation of your use case and a screen recording showing an end-to-end sync in Airbyte (source → destination, with data appearing and API usage staying under 99%). • Complete business verification on Facebook's side. • Make sure Facebook reviewers can log into your app and reproduce the experience shown in your screencast — this is a common rejection reason. [App Review Tips] 2. Are those permissions mandatory? The connector's spec lists these permissions for generating an access token: >
ads_management
,
ads_read
,
read_insights
,
business_management
[Connector Spec] However, there is an important caveat regarding `read_insights`: A recent issue confirmed that
read_insights
was included in the OAuth scope but Meta no longer lists it as a valid standalone permission in some app configurations. The Airbyte team has since deployed a fix and noted: •
read_insights
is not required by the connector's streams — insights data is accessible via
ads_read
. • The Airbyte team plans to remove
read_insights
from the documentation. • The actually required scopes are:
ads_management
,
ads_read
,
business_management
. [OAuth Scope Issue] So in practice, for your own Facebook App, you should request: If your app doesn't have
read_insights
configured as a use case, skip it —
ads_read
covers insights access. [OAuth Scope Issue] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help., with interactive elements
a
@kapa.ai to get the page_access_token, i should take the read_insight permission?
k
read_insights for Page Access Token The knowledge sources do not explicitly address whether
read_insights
is required specifically to generate a page access token. Based on what the knowledge sources do say: • For the Facebook Pages connector (not Facebook Marketing),
read_insights
is listed as a required permission for the OAuth app, alongside
pages_read_engagement
,
pages_read_user_content
, and
pages_show_list
. [Facebook Pages Docs] • The page access token itself is generated by exchanging a User access token for a Page access token via the Graph API — this process does not inherently require
read_insights
. [Components Code] •
read_insights
is needed to read insights data (e.g., page/post metrics), not to generate the token itself. So in summary: • To generate the page access token →
read_insights
is not required. • To sync insights data via the Facebook Pages connector →
read_insights
is required as a permission on your app. [Facebook Pages Docs] I'd recommend checking Meta's official permissions reference directly to confirm the exact permissions needed for your specific use case, as the knowledge sources note that Meta's permission documentation can change. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
a
@kapa.ai i know you provides two connectors(facebook marketing, facebook page) as default. as you parse the data table i shared, should i fork and update based on which connector?
k
I appreciate you mentioning a data table, but I don't actually see any table shared in our conversation — no file or attachment has been provided that I can parse. Could you please share the table showing what data you want to pull from Facebook? Once I can see it, I can give you a clear recommendation on whether to fork: •
source-facebook-marketing
— focused on ad account data: campaigns, ad sets, ads, creatives, insights, custom conversions, images, videos, pixels, etc. [Facebook Marketing] •
source-facebook-pages
— focused on Facebook Page data: page details, posts, post insights, page insights, etc. [Facebook Pages] As a general rule: • If your data is related to ads, campaigns, and ad performance → fork
source-facebook-marketing
• If your data is related to page content, posts, and page engagement → fork
source-facebook-pages
Please share your table and I'll give you a more precise recommendation! 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
I can see you've mentioned sharing a table, but unfortunately no attachment or file content is visible in your message — it appears the table did not come through successfully. Could you try again by: • Pasting the table directly as text in the chat, or • Listing the fields/entities you want to pull from Facebook Once I can see what data you need, I can confidently recommend whether to fork
source-facebook-marketing
or
source-facebook-pages
as your base connector. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
a
@kapa.ai Here is the detail table Field Name API Field / Source Type Notes page_id id String Stable page identifier followers_count followers_count Integer Current follower count fan_count fan_count Integer Page likes (legacy, keep for delta) follower_growth insights/page_fan_adds_unique Integer[] Daily new followers, time-series impressions_30d insights/page_impressions Integer 30-day rolling total reach_30d insights/page_reach Integer Unique users reached, 30d engagement_rate insights/page_engaged_users / reach Float Computed: engaged / reach gender_split insights/page_fans_gender_age Object Keyed by gender; aggregate from age buckets age_distribution insights/page_fans_gender_age Object Buckets: 13-17, 18-24, 25-34, 35-44, 45-54, 55+ top_countries insights/page_fans_country Object ISO-3166 country code : count ad_spend_30d ads/insights (adaccount_id) Float (USD) Requires Ads API access token; spend field
k
Connector Recommendation Based on Your Data Table Looking at your fields, you need data from both Facebook APIs: Recommendation Most of your fields (9 out of 10) come from the Facebook Pages connector. [Facebook Pages Docs] → Fork
source-facebook-pages
as your base, because: •
page_id
,
followers_count
,
fan_count
→ available in the
page
stream •
follower_growth
,
impressions_30d
,
reach_30d
,
gender_split
,
age_distribution
,
top_countries
→ available via
page_insights
stream metrics like
page_fan_adds_unique
,
page_impressions
,
page_reach
,
page_fans_gender_age
,
page_fans_country
[Facebook Pages Docs] ⚠️ Special Case: ad_spend_30d This field requires the Ads API (
ads/insights
) with a separate Ad Account access token and `ads_read`/`ads_management` permissions. [Facebook Marketing] You have two options: 1. Keep it separate — run
source-facebook-marketing
as a second connector just for
ad_spend_30d
and join the data downstream. 2. Merge into your fork — add Ads Insights API calls into your forked
source-facebook-pages
connector, but this significantly increases complexity and requires managing two different access tokens. Option 1 is strongly recommended for maintainability. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help., with interactive elements