I tried to connect Facebook and Instagram, but the instructions are outdated and neither works. On Instagram, I receive the following message. Additionally, I attempted to add the domain to the App Domains on developers.facebook.com, but it won’t save. When I try to connect the account regardless, the following error is displayed by the API (translated from German to English):
“URL cannot be loaded: The domain of this URL is not included in the app’s domains. To be able to load this URL, add all domains and subdomains of your app to the app domain field in your app settings.”
Regarding Facebook, the redirect link (https://cloud.activepieces.com/redirect) is not saved under App Domains or “Allowed Domains for the JavaScript SDK”. It seems that a complete company verification is required, but that can’t be right, can it?
So i finally managed to set it up… you don’t need a business account and you don’t need a verification. But the instructions are missing the most important step. You need to generate an access token for your developer account if you haven’t done that before!
For everyone who’s trying to repeat that, here are the CORRECT steps:
-Go to https://developers.facebook.com/
-Make a new app, Select Other for usecase.
-Choose Business as the type of app.
-Fill the App Domain with Domain in Redirect URL.
-Add new Product → Facebook Login for Business.
-Navigate to Facebook Login for Business Settings
-Copy this to “Valid OAuth Redirect URIs”: https://cloud.activepieces.com/redirect
-Copy this to “Allowed Domains for the JavaScript SDK”: https://cloud.activepieces.com/
-Activate Login with JavaScript-SDK
-Go to Navbar => Tools => Graph API Explorer or here (Graph API Explorer - Meta for Developers)
-generate an access token, by requesting the user and app keys from the drop-down menu and log in with your credentials (Don’t know if the names are the same in english, i translated that in english)
-Copy and Paste App ID and App Secret into the active pieces fields and connect
As described above, you need to generate a token, execute a request and choose the permissions, just look in YouTube for Facebook Graph API for visual explanations. This are all the settings i have
is prone to break if you don’t verify with a business account. That’s already happened to tons of people when Facebook changed the API a few years ago.