Hello guys, so basically Facebook API v15 can’t be...
# replication-troubleshooting
y
Hello guys, so basically Facebook API v15 can’t be used with the current Facebook Python SDK which hasn’t been updated yet. As my app have been created after v15API released, I need a v15 SDK or maybe some of you have documentations or any help on workarounds? What workaround can I use meanwhile? Because Airbyte currently does not work with Facebook v15 API. Thank you for any help 😃
✍️ 1
🎃 1
e
Hi. so it is a known issue when using sdks in general. fb skd already has a pull request to update the version from 14 to 15. a workaround is to add logic that checks the version of the api in the sdk and if it is not the latest @override it.
octavia loves 1
y
@Eli Sigal Thank you! If you know where I could find such logic it would be amazing - thank you
e
sure: example:
Copy code
import facebook_business

print(facebook_business.__version__)

if facebook_business.__version__ == '15.0.0':
    print('some code on success')
else:
    facebook_business.__version__ = '15.0.0'
    print("some code on failure")
    print("also you can override here the url it self "
          "- which is what we do since you want to do this only where you tested the api")
print(facebook_business.__version__)
Let me know if this works
If this doesnt work- you will need to create logic that goes to the dir where init.py is located in the sdk and read the file and write new data to it instead (only once though - check if the version is correct else override)
s
Fyi work on this issue is being tracked in https://github.com/airbytehq/airbyte/issues/18167 feel free to leave thoughts or a thumbs up to help prioritize it
1