0
我在下面:https://developers.facebook.com/docs/guides/web/遇到問題與整合Facebook驗證
我的網站都有自己的登錄系統(這是寫在Django/Python)的。如果不使用django-social-auth類型的插件,我想將Facebook身份驗證集成到我的Web應用程序中。
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{{facebook_app_id}}', // App ID
channelUrl : '//{{host_name}}/external/fb_channel', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(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));
</script>
但是,我已經按照該指令(https://developers.facebook.com/docs/guides/web/)和登錄按鈕顯示預期和點擊時,彈出窗口顯示,讓我的應用。 (我在127.0.0.1這是本地主機運行我的服務器)
那麼,接下來是什麼?當用戶點擊登錄並允許登錄時,我希望做一些服務器端驗證,以使用fb賬戶登錄我的用戶。但我不知道現在該做什麼。
點擊使用FB登錄後,它閃爍並沒有打我的服務器。需要一些指導。
謝謝。