Flutter Developer
I’m integrating Facebook login in my Flutter app using Appwrite Cloud. Google OAuth works fine, but I’m stuck with Facebook.
Here’s what happens:
When I log in with Facebook, the popup opens, I click Continue as…, and Facebook accepts the login.
Appwrite actually creates the session successfully (I can see this in my logs).
But instead of redirecting back to my app, Facebook shows an error page: “Sorry, something went wrong. Please try again later.”
In my Facebook Developer Console → Valid OAuth Redirect URIs, I’ve tried adding these values:
https://cloud.appwrite.io/v1/account/sessions/oauth2/callback/facebook/PROJECT_ID
https://fra.cloud.appwrite.io/v1/account/sessions/oauth2/callback/facebook/PROJECT_ID
In Appwrite Console (under the Facebook provider), Appwrite shows me this as the required redirect URL:
https://fra.cloud.appwrite.io/v1/account/sessions/oauth2/callback/facebook/PROJECT_ID
Why does the login succeed but the redirect fails with Facebook, while Google works fine? or do we need to setup for android/ios in facebook as well?
Any guidance from someone who has successfully set up Facebook OAuth with Appwrite Cloud would be greatly appreciated 🙏