Skip to content
Back

Facebook OAuth with Appwrite Cloud fails: "Something went wrong" after login redirect

  • 0
  • Flutter
  • Auth
mobix
9 Sep, 2025, 18:36

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 🙏

TL;DR
Developers integrating Facebook OAuth with Appwrite Cloud are facing an issue where the login succeeds but the redirect back to the app fails, displaying a "Something went wrong" error on Facebook. The redirect URIs settings on both Facebook Developer Console and Appwrite Console should be double-checked. Along with the URLs mentioned, it might be necessary to set up additional configurations for Android/iOS platforms in the Facebook developer settings.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more