Hello. I'm doing oauth2 auth in my Android app (Appwrite SDK version 5.0.0, Kotlin). I've no any issues with Google, but with Facebook, it's not working. Now it looks as: I tap the 'Login by Facebook" button and go to the auth screen in a web browser. Login seems successful, but after it, I see only line "{"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.4"}"
I checked the error journal. One of the lines is "[Error] Message: Cannot assign null to property Appwrite\Auth\OAuth2\Facebook::$tokens of type array". It looks like a problem on Facebook's side, but why? maybe you could give me some advice.
Also, that is what I did:
- Enabled Facebook oauth2 in my project
- Entered setting in "meta for developers" console (screenshot1)
- Got ID and secret, entered them in Appwrite, and updated a callback link
- Added callback to Meta console (screenshot2)
- Checked callback validation (screenshot3)
My app is not published on Meta's console right now, but it's in test mode, and I tried to log in from the test admin account. Host, project, and accoundId in my app are correct because they work with Google. My function is on the fourth screen.
What did I do wrong?
PS: I'm so sorry, I don't know how to enable the English language in Meta's console.
Recommended threads
- session.secret is empty when using node-...
I am implementing SSR authentication using Next.js Server Actions and node-appwrite. The session is created successfully, but session.secret is empty. Here is m...
- Inquiry for SMS OTP Auth
I want to use SMS OTP Auth for a project. I just need some clarifications: # Do I have to purchase the Pro plan if I need around 1500 SMS only? Or can I just p...
- Database listRows method call failing in...
I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of...