2011-07-01 62 views

回答

4

Stephen, 它可能有點複雜。

你要的文件,在結合:

http://developers.facebook.com/docs/guides/web/

http://developers.facebook.com/docs/plugins/registration/

沸騰它歸結爲最簡單的情況:

<html> 
<head> 
    <title>My Facebook Registration Page</title> 
</head> 
<body> 
    <div id="fb-root"></div> 
    <script src="http://connect.facebook.net/en_US/all.js"> 
    </script> 
    <script> 
    FB.init({ 
     appId:'yourAppID', cookie:true, 
     status:true, xfbml:true 
    }); 
    </script> 
    <fb:registration 
     fields="[{'name':'name'}, {'name':'email'}, 
     {'name':'favorite_car','description':'What is your favorite car?', 
     'type':'text'}]" redirect-uri="Your processing URL"> 
    </fb:registration> 
</body> 
</html> 

Facebook將與所有返回的加密形式場被稱爲「簽名請求」的用戶數據您將需要用您的密鑰解密該字段。 http://developers.facebook.com/docs/plugins/registration/

+0

底部有一個PHP示例嗨,即時通訊嘗試這個,但現在我得到的錯誤該'redirect_uri'不允許爲該client_id。 –

+1

redirect_URI必須位於您在Facebook上創建應用程序時指定的網站域中。 –

+0

發現了什麼是錯的。這個網站的網址沒有設置好歡呼聲 –

相關問題