Facebook OAuth with Appwrite Cloud fails: "Something went wrong" after login redirect
- 0
- Flutter
- Auth
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 🙏
Recommended threads
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...
- RBAC design question
Hi, I am trying to create RBAC so we will have multiple orgs in the app each org will have 3 roles (admin, member and read only) what is the best way to go ab...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.