How does one avoid a cyclic redirect when writing a facebook application using pyfacebook and google app engine?

那年仲夏 提交于 2019-12-06 11:20:58

If you're just starting out with your Facebook app, consider using the Official Python SDK which accesses the Graph API. The REST API is being phased out.

To do authentication, use the JS SDK which will set a cookie you can read on the server side.

Brian Rowe

I agree with cope360. I've been playing around with facebook app development for a little while now. They seem to be changing their API frequently, so you'd be better off using the official libraries.

That said, to answer your question, pyfacebbok tries to get authenticaion information from information in django's HttpRequest.GET. This is out-dated, because facebook provides authenticaion info in POST data.

The source code that's responsible is in pyfacebook/facebook/__init__.py. The method name seems to be validate_request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!