Facebook javascript api - 应用程序设置不允许一个或多个给定的 URL

Facebook javascript api - One or more of the given URLs is not allowed by the App's settings

我在 bluemix 上托管了一个简单的应用程序。

我已经为我的应用程序设置了单点登录服务并将其与 facebook 配对。我可以使用 bluemix 的 SSO 服务成功登录,然后我想检查我的登录状态(我是否登录)。

function CheckStatus(){
    console.log("I'm trying to check the status");
    FB.getLoginStatus(function(response) {
        console.log("Here is the status response:");
        console.log(response.status);
    });

 }

我用之前定义的一个简单按钮触发了这段代码。每当我单击代码时,都会出现以下错误:

Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

我查看了 Whosebug 上关于此的许多帖子,其中 none 似乎有效。我的理解是我的应用程序配置有问题,但我不知道是什么。

以下是我的配置:

这是 url 我的应用程序在尝试获取我的登录状态时试图到达的地址:

https://www.facebook.com/connect/ping?client_id=913147408730179&domain=fncsecuritydemo.mybluemix.net&origin=1&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FrFG58m7xAig.js%3Fversion%3D41%23cb%3Df29b5c6b3%26domain%3Dfncsecuritydemo.mybluemix.net%26origin%3Dhttp%253A%252F%252Ffncsecuritydemo.mybluemix.net%252Ff21657f8dc%26relation%3Dparent&response_type=token%2Csigned_request%2Ccode&sdk=joey

我不知道接下来应该尝试什么。非常感谢任何帮助。如果您需要更多信息,请告诉我。

此错误的答案在于设置中 Advanced 选项卡下的 Valid OAuth redirect URIs

在 Facebook 上设置应用程序配置文件时,我已将有效 OAuth 重定向 URI 设置为由 bluemix 生成的 URL。

为了在我的申请中收到回复,我还必须在其中添加我的应用程序 url。新手错误。