Facebook OAuth login for iframe canvas apps displays a logo image and a Go to Facebook.com caption instead of logging in

后端 未结 4 2443
感动是毒
感动是毒 2020-12-08 16:28

I\'m trying to set up my (iframe) Facebook application to use OAuth for authentication. I used the python-sdk from Facebook, but I\'m not really satisfied by the result, yet

4条回答
  •  执念已碎
    2020-12-08 17:28

    The issue is caused to the code Facebook uses to bust out of iframes. A bug has been filed on Facebook's bugzilla: http://bugs.developers.facebook.net/show_bug.cgi?id=11326

    The only known solution to this problem is to do the first redirect to https://graph.facebook.com/oauth/authorize? from the client side (i.e. Via JavaScript), using

     
    

    This can be triggered when the user clicks on some element (e.g. a login button) or whenever a specific page is visited (just include it in the HTML head).

提交回复
热议问题