https://linen.dev logo
Channels
2nd-example
advice-data-architecture
advice-data-ingestion
advice-data-orchestration
advice-data-privacy
advice-data-quality
advice-data-transformation
advice-data-visualization
advice-data-warehouses
advice-reverse-etl
airbyte-api
airbyte-cloud-pricing
airbyte-for-power-users
airbyte-plus-airflow
airbyte-plus-dagster
announcements
authentication
careers
cloud-master-build-failure
community-strategy
connector-builds
connector-development
contributing-to-airbyte
databricks-airbyte316
delete-remove
dev
dev-3-alerts
dev-db-sources
dev-frontend
dev-frontend6323
dev1-alerts
events-and-conferences
example-of-channel
ext-torch-cube
feedback-and-requests
github-updates
good-reads
gtm
hacktoberfest-2022
help
help-api-cli-orchestration
help-connections-issues
help-connector-development
help-contributions
help-infrastructure-deployment
infra-dev-alerts
infra-dev-alerts-webhook
introductions
issue
kubernetes
kudos
license-questions
linen-test
local-brazil
local-london
local-sf
marcos-test-discourse
memes-and-banter
mos-client
motleyfool
movedata-a-different-way-to-work
movedata-airbyte-connection-management-scale
movedata-airbyte-orchestration-in-gcp
movedata-better-data-testing-with-the-data-error-generating-process
movedata-bring-your-own-infra
movedata-building-a-real-time-user-facing-dashboard-with-airbyte-redpanda-and
movedata-building-connectors-in-minutes
movedata-cicd-for-data-building-devtest-data-environments-with-lakefs
movedata-data-analysts-are-setup-to-fail-and-its-our-fault
movedata-data-engineering-is-software-engineering-and-software-engineering-is-da
movedata-data-orchestration-is-not-just-running-jobs-on-a-schedule
movedata-dataops-on-the-open-modern-data-stack
movedata-dev-first-open-source-data-observability-solution
movedata-ducky-data-crunching-on-the-laptop---the-pendulum-swings
movedata-five-causes-of-data-quality-issues
movedata-future-evolution-of-the-data-stack
movedata-general
movedata-guardrails-not-stop-signs
movedata-if-you-build-it-will-they-come-how-to-activate-your-modern-data-stack
movedata-in-2023-data-trust-will-be-more-important-than-ever-before
movedata-ingesting-data-with-airbyte-into-a-high-speed-data-lakehouse-using-trin
movedata-keynote-building-the-foundations-of-data-movement
movedata-let-your-data-team-choose-their-own-tools
movedata-mobilize-the-worlds-data
movedata-modern-data-management---how-to-achieve-data-discovery
movedata-moving-data-reliably-ingestion-observability-are-better-together
movedata-navigating-the-modern-data-stack-with-open-source-headless-bi
movedata-open-source-communities-shape-modern-data-stacks
movedata-prefect-ing-self-hosted-airbyte
movedata-prep-your-pipelines---reverse-etl-and-the-coming-great-flood
movedata-speakers
movedata-streaming-made-modern
movedata-the-best-data-warehouse-is-a-lakehouse
movedata-the-data-ecosystem-is-ready-for-etl-to-be-dead
movedata-the-end-of-the-pipeline
movedata-traditional-data-catalogs-will-be-replace-by-active-metadata-platforms
movedata-using-airbyte-on-day-1of-our-startup
movedata-using-airbyte-to-build-your-dremio-open-data-lakehouse
movedata-who-needs-a-traditional-data-warehouse-when-you-can-get-real-time-analy
movedata-why-bi-is-not-enough
octavia-life
office-hour
office-hour-12-october
oss-master-build-failure
oss-master-build-failure
p0-amazon-ads-03-30
p0-cloud-syncs-failing-dec-15
p0-instagram-incompatible-metrics
p0-source-airtable-stream-failures
p1-auto-detect-schema-issues-2-1-23
partner-productpair-hightouch
premium-support-qa
prod1-alerts-test
prod1-health
shameless-plugs
troubleshooting
understanding-airbyte
well-seeded-accounts
write-for-the-community
Powered by
Title
b

Bruno Alano

05/25/2023, 2:38 PM
When using the "Initiate OAuth for Source" on Facebook Marketing, after Source Creation, I try to test using the Airbyte's Dashboard, and says that has Invalid Credentials. Is that correct?
j

Jon Tan (Airbyte)

05/25/2023, 4:37 PM
That is not correct, can you walk me through the steps you took to authenticate and create your source?
b

Bruno Alano

05/25/2023, 4:40 PM
@Jon Tan (Airbyte) The process is the following: 1. My customer access our Dashboard and click to create a new Facebook Integration; 2. Our backend generates the authentication URL using Airbyte's API (Initiate OAuth Source); 3. User get's redirected into Facebook page and authorize the Airbyte's FB application; 4. User gets redirected into my application page, containing the Secret ID in the URL; 5. For my application, I need to fetch all of his ad accounts, so this is now specific into my application. Now we clicks to fetch the list of all his ad accounts; 6. He gets redirected into Facebook again, and authorize My Application FB App; 7. Return to the page, with now the Secret ID from Airbyte and all his ad accounts IDs; 8. My backend use the same secret to create for those N ad accounts;
j

Jon Tan (Airbyte)

05/25/2023, 5:13 PM
Am I understanding correctly that in step 5/6, you have your own facebook marketing application that you're using to redirect the user to facebook and authorize/fetch account IDs? Can you also provide me your connection ID? It should be in the URL of your page where you have the connection open in the UI.
b

Bruno Alano

05/25/2023, 5:44 PM
@Jon Tan (Airbyte) Yes, instead of asking user to manually fill all his Ad Accounts IDs, I did that way. I didn't setup a connection yet, but the source ID is:
bb4fd7b7-cae2-416f-9f65-e94271cc7738
Did you identified the problem @Jon Tan (Airbyte)? I need to get this working because I've already some customers to onboard
j

Jon Tan (Airbyte)

05/25/2023, 7:35 PM
I think I might know what's going on. Can you send me the request you used to create the source?
I had to step out, but based on what I looked at, it seems you may have passed your secret in as the access token in the source configuration. When you create the source, you'll need to create it with the secret ID passed in the
secretId
parameter outside of the connection configuration, not in the access_token parameter within the configuration. Give that a try if you're working on this before I'm available in the morning. Also happy to jump on a quick call to resolve this and make sure you're able to create your sources. As an example see this:
{
    "configuration": {
        "include_deleted": False,
        "fetch_thumbnail_images": False,
        "page_size": 100,
        "insights_lookback_window": 28,
        "max_batch_size": 50,
        "action_breakdowns_allow_empty": True,
        "sourceType": "facebook-marketing",
        "account_id": "111111111111111",
        "start_date": "2017-01-25T00:00:00Z",
        "access_token": "ACCESS_TOKEN"
    },
    "secretId": "SECRET_ID"
}
b

Bruno Alano

05/26/2023, 1:18 PM
@Jon Tan (Airbyte) What value should I use in Access Token?
It worked, thanks @Jon Tan (Airbyte)
j

Jon Tan (Airbyte)

05/26/2023, 4:52 PM
Perfect - the access token in this case doesn't matter if you're passing in a secret. For future reference, the guide doc for creating OAuth sources has a note which says that if you're using a secret to create the source, some configuration might not be required. Essentially the secretId is used instead of you needing to supply any of the fields marked as
airbyte_secret=true
in the connector's specification. Here's a link to that section of the doc: https://reference.airbyte.com/docs/creating-oauth-sources#source-creation Let me know if you run into other trouble, happy to take a look and help resolve.