Tried to setup the Facebook Marketing API connecto...
# ask-community-for-troubleshooting
j
Tried to setup the Facebook Marketing API connector today with a developer token that I created last Thursday. Getting this error:
The connection tests failed.
"FacebookAPIException('Error: 2635, (#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v12.0.')"
Do you believe this is related to my token and can I then upgrade it in my FB Developer Account, or does the issue reside on the connector side?
1
h
Hey Jonas. I think this is related to the API connector use to get the access_token. Can you help me with the version of
Facebook Marketing API
?
j
@Harshith (Airbyte) Sure, could you clarify what help you need with the API version?
h
can you help me with the facebook connector version you are using ?
j
0.2.17 (latest)
h
@Jonas Bolin I was referring to this page(https://developers.facebook.com/docs/graph-api/changelog/version11.0) a bunch of keys got deprecated since September 2021. I would suggest you to go through doc.
Also can you share the logs for the respective sync.
j
@Harshith (Airbyte) I get this error on the test connection page when making the initial setup
so no specific keys are entered
it would seem to me that the connector is using a deprecated version
h
Yeah looks like that. But I did verify the version and we are using v11.0 and I don't find anything in their docs saying it's deprecated. Let me try to replicate the same. Thanks for the info @Jonas Bolin
j
h
@[DEPRECATED] Marcos Marx I tried replicating the scenario and it's working for me. Can you help out here to solve this ?
j
message has been deleted
Think we've found the issue: We enabled the Marketing API last Thursday, and it seems FB Marketing API v12 was released the day before. Now it seems to be not possible to select v11 in the FB Developers Settings. So I think for the connector to work for people who created the developer token since last wednesday, the connector has to support v12
Since we can't downgrade to v.11
This would explain why you can do requests without error, and why we cant
You probably have v.11 on this page, such as my colleague, in this screenshot
h
Yeah though the same the resolution would be to update the package Facebook_business to 12.0.0 which got released 4 days ago.
You can later use that as a custom connector this can be a quick fix
j
@Harshith (Airbyte) sorry if I'm a bit slow here, am more of an analyst than developer by profession. Are you suggesting that I patch an own version of the connector temporarily until Airbyte releases their own version that is compatible with v12?
h
Yeah. In
airbyte-integrations/connectors/source-facebook-marketing/setup.py
you can change
"facebook_business~=11.0",
to
"facebook_business~=12.0"
and rebuild it. Let me know if you need some help here I can push a temporary version and you can use that.
j
@Harshith (Airbyte) If it's not too much trouble on your part I would gratefully accept your help in getting that temporary version up and running. I assume it'd take too much time for me to learn enough about Github etc to get that solved
h
Hey can you try this
public.ecr.aws/h6z3y9a6/fb-2:0.2.18
as custom connector.
j
Again, forgive my ignorance: Is that a link to a Docker container, or where do I enter that link? Is this where I'm supposed to add it:
h
Yep
u
Hi @Jonas Bolin thanks for reporting this. As Harshith said we need to upgrade one lib version. I create the issue https://github.com/airbytehq/airbyte/issues/6337 to keep track of this. Soon we're going to bump the version and you should be able to use the official connector.
j
Hey @[DEPRECATED] Marcos Marx Got the custom connector working now. However when setting up a connection to Bigquery and running it, I get tons of error of the script not being able to ascertain type for various fields. See attached logs. Might be that the connector needs more than just updating the version number for v12.
h
Hey @Jonas Bolin that's sad but thanks for your feedback. Anyways @[DEPRECATED] Marcos Marx has created am Issue https://github.com/airbytehq/airbyte/issues/6337 we will put this across so that we can test it and track it there.
j
Sure, have updated the issue with the log file.
h
Thanks @Jonas Bolin