Pyfacebook @ facebook.require_login () decorator that causes auth_token to be constantly updated

First time using pyFacebook. I literally copied the sample application and posted it on my server. I created an FB application, and now when I try to download the application, basically what happens is that the browser keeps updating. I noticed in the url (for example)

https://apps.facebook.com/myapp/?auth_token=8f826cae31717068c18fb16fd7f0a758

Saves the update when auth_token changes. If I remove the decoder @facebook.require_login(), then the page will display without problems.

Help me please.


I only noticed that he does this only when I select IFrame, and not FBML in the settings of my application. I have fbml templates that do not work. I know there are normal html templates that work on the website, but when I select IFrame I get this constant loop (changing the url with a blank white screen)

+3
source share
2 answers

Ok, so after a few weeks of pain, the problem I ran into was that Facebook updated the entire API. This broke python-based applications based on this. Like PyFacebook.

Now I am using fandjango , and this new one has excellent developer and good documentation.

+2
source

, , - facebook/ init.py, 1742

    if not params:
        if request.method == 'POST':
            params = self.validate_signature(request.POST)
        if not params:   #was else

iframe POST-, auth_token - GET.. validate_signature ( ), GET. , auth_token-, pyfacebook.

+1

All Articles