1
我想在我的網頁上使用Facebook登錄和註冊。我的網頁在本地主機上進行臨時託管,並且Facebook登錄和註冊代碼都正常工作。 但我不知道如何使用該數據來存儲和編寫PHP代碼。如何實現Facebook登錄和註冊
例如。 碼登記表
<iframe src="https://www.facebook.com/plugins/registration?
client_id=&
redirect_uri=http://localhost:90/store.php&
fields=name,birthday,gender,location,email"
scrolling="auto"
frameborder="no"
style="border:none"
allowTransparency="true"
width="100%"
height="330">
</iframe>
代碼登錄按鈕
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-login-button" data-show-faces="true" data-width="200" data-max-rows="1"></div>
兩者都顯示分別工作,但我怎麼使用這些變量?
如何檢查用戶是否已經登錄?如果沒有,我如何讓他登錄並重定向到他的信息的另一頁。主要是我沒有看到這個代碼中使用任何變量。
任何幫助?
沒有幫助! – unkn0wn 2013-04-24 18:58:49