ale*_*rsh 13 facebook facebook-login
我有一个Facebook登录的React/Horizon应用程序.我想知道是否有任何选项可以从localhost登录facebook登录?
Har*_*uja 16
您需要注册为Facebook开发人员并在那里创建应用程序.注册Web应用程序后,您可以转到您的应用程序并单击添加产品.
添加Facebook登录.然后启用Web OAuth登录并在下面的文本字段中添加您的localhost并保存,您应该能够访问它.附上我的Facebook应用程序的示例屏幕截图.
Bis*_*Roy 13
我想添加更新:2019 年 7 月
Facebook 现在在开发模式下自动允许本地主机,而在生产模式下被阻止。您所要做的就是在应用程序设置中打开开发模式,一切顺利。
您不再需要添加localhost为重定向 URL。
在这里,当我尝试添加 localhost 时,您可以在重定向 URL 处看到错误。
Ham*_*ada 11
因此,就我而言,做以下事情对我有用。
All these answers are good.
However I want to add information about how to create a Test app (as recommended by Facebook).
Go to the page to manage Facebook apps (you, the admin must be logged in): https://developers.facebook.com/apps/
Hover over the block containing your live Facebook app and click on the down arrow button that appears on the top right corner. Then select Create Test App from the menu.
The test app will be created with a snapshot of your production app's settings. After this, you can independently edit the settings of your test app without affecting your production app.
See the documentation here: https://developers.facebook.com/docs/apps/test-apps/
Regarding the rest of the setup:
| 归档时间: |
|
| 查看次数: |
24740 次 |
| 最近记录: |