简体   繁体   English

django Facebook注册流程

[英]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.

相关问题 django中的用户注册过程? - User registration process in django? 如何使用Facebook注册实现Django登录 - How to implement Django Login using Facebook Registration Django - 将 Facebook 信息从社会注册保存到数据库 - Django - Saving Facebook Information to database from social-registration django-facebook 中没有名为 registration.forms 的模块 - No module named registration.forms in django-facebook Django-将django-profiles(和django-registration)与django-facebook集成 - Django - Integrating django-profiles (and django-registration) with django-facebook django:Facebook注册API的rest-auth和allauth需要CSRF令牌 - django: rest-auth and allauth for Facebook registration API requires CSRF token 如何在Django中实现正常的站点注册/登录以及社交认证(主要是facebook)? - How to implement normal site registration/login together with social authentication(mainly facebook) in Django? 我怎样才能让 Django 用户注册单步(而不是两步)过程与 email 强制性? - How can I have Django user registration single step (instead of two step)process with email compulsory? 用Django实现虚拟注册 - Implement dummy registration with Django Django注册未注册 - Django-registration not registering
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM