0

FB JS SDK と Flask を使用して FB アプリを開発しています。localhost テストでアプリを最後にチェックしたのは、9 月の終わりの 1 週間前で、その後はすべて正常に機能していました。

今日アプリに戻ったところ、次のようになりました。

Curses! Given URL is not allowed 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. 

2 週間前に構成が機能していましたが、実際には何が変わったのでしょうか?

コード:

function fbLogin(handle)
{
window.fbAsyncInit = function() {

if (DEBUG) console.log("start login");

FB.init({
  appId : XXXXXXXXXX,//app_id,// App ID
  //channelUrl : channel_url, // Channel File 
  channelUrl : '//127.0.0.1:5000/channel.html', // Channel File 
  status     : true, // check login status
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});

if (DEBUG) console.log("login status");

FB.getLoginStatus(function(response) 
{
    if (DEBUG) console.log("get login status"); 
    if (DEBUG) console.log(response);

    if (response.status == 'connected') {
        if (DEBUG) console.log("connecto!");
        getUser(handle);
        getFriends();
    } 
    else if (response.status === 'not_authorized') 
    {
        if (DEBUG) console.log("not auth");   
        fbLoginAPI();
    } 
    else 
    {
        if (DEBUG) console.log("not logged!");   
        fbLoginAPI();
    }
}, true);   


};

(function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js";
    ref.parentNode.insertBefore(js, ref);
 }(document));
}

サイト URL: http: //127.0.0.1:5000/ キャンバス URL: http: //127.0.0.1:5000/

セキュリティで保護された URL https: //127.0.0.1:5000/ を設定できません。

Misfire
Secure Canvas URL cannot be a Facebook URL.

SSL の有無にかかわらず foreman でアプリを起動しようとしましたが、まだ機能しません。

4

0 に答える 0