Hi everyone,
I have been using the API Connecter to connect to Facebooks Marketing API. I am able to sync in with socials using this API which syncs personal data (Marketing API - Documentation - Meta for Developers) only when the other users are added as developers to the Facebook app (not been able to get this working for a new users which isn’t added as an admin or developer to the Facebook app). But I also am having an issue even with users added as admins/developers to the Facebook App, which is that the access token I have manually added in the API connecter as it is the only way to make the calls and posts work. This access token is obviously for only one users. So my questions are…
- How can I request an access token from FB with all necessary scopes and safe it in Bubble so it can be added as a parameter to the end of each call/post/delete?
- How can I have Bubble.io know that an access token is expired so that the user can re-sync with Facebook and allow permissions
- How can I have the app work with users who are not added to the Facebook app as a developer or admin (this maybe a question better suited for Facebooks API forum but any guidance would be super helpful!)
I have added screenshots of how I currently have the API calls set up, but ideally the access_token needs to be dynamic.
For some reason the personal call doesn’t need an access_token and it returns the right personal information for different Facebook users (but only when they are added as a developer or admin to the Facebook App). but the create automation call which uses Facebooks Marketing API, needs an access_token added or it will come up with an error saying it requires an access token, so I need to add one in a dynamic way so that I can save users access tokens and load them as a parameter for each call.