抱歉,出了点问题:使用 next.js 和 next-auth 进行 Facebook 登录

huangapple go评论64阅读模式
英文:

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/

英文:

抱歉,出了点问题:使用 next.js 和 next-auth 进行 Facebook 登录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!

huangapple
  • 本文由 发表于 2023年7月4日 22:18:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76613564.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定