开发者

Facebook iframe rails app without change now returns a "406 Not Acceptable" response

开发者 https://www.devze.com 2023-02-12 08:56 出处:网络
Using facebooker gem. Two separate apps both start returning blank pages in the facebook app iframe and the rails logs show 406 errors.

Using facebooker gem. Two separate apps both start returning blank pages in the facebook app iframe and the rails logs show 406 errors.

Note开发者_JAVA百科 that direct access to the site with the same url as called in the iframe works if the fb_sig parameter is dropped.

Have facebook changed either the parameters (naming) that they pass to an app or is it something to do with the deprecation of fbml? Or facebooker issue?


I ran into the same problem recently.

This could fix it:

Please check if Facebook turned on "POST for Canvas" in the "Advanced" tab in your application settings on www.facebook.com/developers/. If so, deactivate.

Hope this helps!


The javascript FB.init call used to look something like:

FB.init("API_KEY", "xd_receiver.htm", ...

And now looks like (http://developers.facebook.com/docs/reference/javascript/fb.init/):

FB.init({
     appId  : 'YOUR APP ID',
     status : true, // check login status
     cookie : true, // enable cookies to allow the server to access the session
     xfbml  : true  // parse XFBML
   });

I've also just had the useful "POST for Canvas" break things too, so thanks Michael.

0

精彩评论

暂无评论...
验证码 换一张
取 消