Google App Engine上的Facebook注册 [英] Facebook Registration on Google App Engine

查看:135
本文介绍了Google App Engine上的Facebook注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上看了一下使用Facebook注册进行用户身份验证,我无法找到很好的例子。我在Google App Engine上使用python,想看看有没有人在Facebook或Facebook画布上没有示例。 这一个是非常有帮助的,但没有几点我想采取。

I have looked a bit into using the Facebook Registration for user authentication on my website and I am having trouble finding good examples. I am using python on Google App Engine and wanted to see if anyone had examples that are not on facebook or in facebook canvas. This one is very helpful but doesn't have a few points I want to took at.

我只是想使用Facebook作为一种允许用户登录的方式,并且能够验证他们在我网站的任何页面上是谁。

I just simply want to use Facebook as a way to allow users to log in and to be able to verify who they are on any page of my website. Any examples of this would be greatly appreciated.

推荐答案

如果你想尝试更多,你可以使用 Flask ,它与Google App Engine完美结合,然后使用 Flask-OAuth 认证部分很简单(完整示例):

If you would like to experiment more you could use Flask which integrates nicely with Google App Engine and then on top of it by using the Flask-OAuth the authentication part it's pretty straight forward (full example):

facebook = oauth.remote_app('facebook',
    base_url='https://graph.facebook.com/',
    request_token_url=None,
    access_token_url='/oauth/access_token',
    authorize_url='https://www.facebook.com/dialog/oauth',
    consumer_key=FACEBOOK_APP_ID,
    consumer_secret=FACEBOOK_APP_SECRET,
    request_token_params={'scope': 'email'}
)

gae-init 是我使用Flask的例子之一Google App Engine,您可以使用Facebook或Twitter登录,除了Google登录。

gae-init is one of my examples where I'm using Flask on Google App Engine and you could login using Facebook or Twitter besides the Google login.

这篇关于Google App Engine上的Facebook注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆