2013-07-09 5 views
5

Hier ist mein aktueller Login-Flow für meine Facebook-App (siehe eine Erklärung für eine Facebook-App) (siehe this answer). logout() und login() sind Dummy-Funktionen, die die Seite, wenn der Benutzer machen abgemeldet oder angemeldet.Facebook-App - Leise "Protokolle müssen übereinstimmen" Fehler

window.fbAsyncInit = function() { 
    FB.init({ 
     appId: '...', 
     channelUrl: window.location.protocol + '//' + window.location.host + '/channel.html', 
     status: false, 
     cookie: true, 
     xfbml: false, 
     oauth: true 
    }); 

    FB.getLoginStatus(function(response) { 
     if (response.status === 'connected') { 
      login(response); 
     } else { 
      FB.Event.subscribe('auth.login', function(response) { 
       login(response); 
      }); 
      logout(); 
     } 
    }); 
}; 

Mit diesem Login fließen, ich habe nicht die Seite neu zu laden, wenn der Benutzer anmeldet, aber ich der stille Fehler:

Blocked a frame with origin " http://www.facebook.com " from accessing a frame with origin " https://s-static.ak.facebook.com ". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

ich gehe davon aus, dass die Seite neu zu laden, die iframe überträgt die App auf das https:// Protokoll halten, aber ich verstehe wirklich nicht, warum oder was das bedeutet. Warum tritt dieser Fehler auf und ist es etwas, worüber man sich Sorgen machen muss?

Antwort

Verwandte Themen