[英]django Facebook Registration Process
I've been searching some topics concerning facebook registration. 我一直在搜索有关Facebook注册的一些主题。 Its just that i cant find any topics on how to save the user's facebook data to my users model. 只是我找不到有关如何将用户的Facebook数据保存到我的用户模型的任何主题。
Currently, users can Login successfully in my site. 目前,用户可以在我的网站上成功登录。
here's my code: 这是我的代码:
base.html base.html
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() { FB.init({ appId : 'XXXXXXXXXXXXXX', status : true, cookie : true, xfbml : true }); };
(function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }());
</script>
<fb:login-button autologoutlink="true" perms="email,user_birthday,status_update,publish_stream" ></fb:login-button>
My problem is i dont know how to get the Data from facebook and save it to may users model. 我的问题是我不知道如何从Facebook获取数据并将其保存到可能的用户模型。
do you have any idea on how to solve this problem? 您对如何解决这个问题有任何想法吗? your answers are highly appreciated. 非常感谢您的回答。 thank you..! 谢谢..!
Does this help you: Facebook Connect: capturing user data with django-profiles and django-socialregistration or you need a more verbose answer? 这对您有帮助吗? Facebook Connect:使用django-profiles和django-socialregistration捕获用户数据,还是需要更详细的答案?
EDIT: that facebook.GraphAPI
thing can be imported from this: https://github.com/facebook/python-sdk/ 编辑:可以从此导入facebook.GraphAPI
东西: https : //github.com/facebook/python-sdk/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.