英文:
Sorry, something went wrong: Facebook login with next.js & next-auth
问题
I want to use the next-auth package in order to setup login with Facebook.
During the development npm run dev
it works fine, and I am able to login with Facebook. Unfortunately when deployed it does not work. I do not know what is wrong. Did anyone have this problem? Link to the demo page https://front-demo-sigma.vercel.app/
英文:
I want to use the next-auth package in order to setup login with facebook.
During the development npm run dev
it works fine, and I am able to login in with Facebook. Unfortunately when deployed it does not work. I do not know what is wrong. Did anyone have this problem? Link to the demo page https://front-demo-sigma.vercel.app/
答案1
得分: 4
在你的Facebook应用中,转到**>使用情况>身份验证与帐户创建**,检查你是否具备所需的所有权限。
我曾经遇到过相同的问题,在我的情况下,我没有激活电子邮件权限,之后它就可以了!
英文:
In your Facebook app, go to >Use Cases>Authentication & Account Creation and check if you have all the permissions you need.
I had the same issue, in my case I didnt have the email permission activated, after that it works!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论