此资源不允许使用GET方法(python,google app engine,fb graph api)?

时间:2014-05-30 11:16:49

标签: google-app-engine facebook-graph-api python-2.7 webapp2

我现在正在通过访问令牌我想获取用户信息。当我运行这个谷歌应用引擎时,它给了我错误:

此资源不允许使用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()

0 个答案:

没有答案