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
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...