首页 文章

在哪里设置Facebook应用程序的Oauth重定向URI?

提问于
浏览
117

我们被要求在说明中设置Facebook的OAuth重定向URI(如下所示),以设置Google Firebase以使用Facebook登录 .

我们点击了我们应用的每个菜单 . 它在哪里?它会被称为不同的东西吗?

来自Firebase documentation

...确保您的OAuth重定向URI(例如my-app-12345.firebaseapp.com/__/auth/handler)在Facebook for Developers网站的Facebook应用设置页面中列为您的OAuth重定向URI之一产品设置> Facebook登录配置 .

4 回答

  • 187

    我也很难找到这个设置 .

    如果您使用 https://developers.facebook.com/ ,则可以在 Profiles 图片旁边的右上方找到您的应用 . 选择应用程序将转到该应用程序的设置 .

    https://developers.facebook.com/sa/apps/<my-app-id> 上的应用设置中,请确保添加Facebook登录产品 . 然后在"Client OAuth Settings"下输入"Valid OAuth redirect URIs"框中的URL .

  • 7

    根据facebook开发者网站用户界面的新变化,你可以在这里找到它 . 按图像步骤创建图像以找到它 .

    1.单击添加产品,如下图所示 .

    enter image description here

    2.你得到一个这样的屏幕 . 你会看到Facebook提供的产品列表 . 在图像中你看不到facebook登录,因为我已经添加了它 .

    enter image description here

    3.单击Facebook登录设置 .

    enter image description here

    4.您将获得显示客户端OAuth登录所需的屏幕以及用于输入重定向URL的字段 .

    enter image description here

  • 107

    1-转到Firebase控制台 - >身份验证 - >登录方法 - > Facebook . 您将在App Secret和App ID下方找到该链接 . 复制它 . (它应该是这样的:https://your-app-id.firebaseapp.com/__/auth/handler

    2-转到https://developers.facebook.com/apps/ - >您的应用程序 - >产品 - > Facebook登录(如果没有't yet) -> Settings. Past the link you'已复制到"Valid OAuth redirect URIs"框中,请添加它 .

  • 10

    它不再存在于设置中 . 您可以在左侧菜单中找到“添加产品”选项 . 选择该选项然后选择“Facebook链接” . 在那里你会找到一个粘贴链接的框 .

    BTW, this can change whenever FB decides to redesign their Menu UI

相关问题