我现在正在通过访问令牌我想获取用户信息。当我运行这个谷歌应用引擎时,它给了我错误:
此资源不允许使用GET方法。提前致谢。 http://gprofile12321.appspot.com/loginfb 还有一个错误我必须发送https://到fb graph api
class BaseHandler(webapp2.RequestHandler):
def get(self):
user = User()
graph = facebook.GraphAPI(access_token)
profile = graph.get_object("me")
user = User(fb_user=str(profile["id"]),
name=profile["name"],
email=profile["email"],
access_token=cookie["access_token"])
user.put()