facebook-iframe

Why is the first request to a Facebook IFrame App Canvas Page a POST request?

泪湿孤枕 提交于 2019-12-07 02:47:07
问题 I noticed when I set up my first FB app today (an iframe app accessed within facebook) that all the requests made to it via facebook are HTTP POSTs rather than GET requests. Is there any reason for this? What if I wanted to implement HTTP caching? I'm new to developing on the FB platform, forgive me if this is an obvious question but I've googled and can't find the answer. 回答1: Facebook POSTs to the initial page in order to pass along the signed request that includes potentially important

Facebook app iframe won't attempt to load when logged in as page

安稳与你 提交于 2019-12-06 02:24:53
I have an app that shows up as an iframe on a Page. ( Here's an example. ) If you view the app tab as a Facebook user, whether you have the app installed or not, everything works correctly. If you view the app tab as a Facebook Page that has not installed the app, everything works correctly. If you view the app tab as a Facebook Page that has installed the app, nothing displays. In fact, when sniffing the HTTP headers, it looks like no attempt is ever made to load the app URL . Any idea what needs to happen on the Facebook side of the equation in order to have the tab at least make an attempt

Fancybox Positioning Inside Facebook Canvas iFrame

萝らか妹 提交于 2019-12-05 10:00:02
问题 OK so I have a iframe canvas app with its height set to "Settable" with the facebook javascrip sdk calls to FB.Canvas.setSize(); and FB.Canvas.setAutoGrow(); . These are working perfectly, as the iframe gets set to a certain pixel height based on its content. The problem is that when I make a call to Fancybox, it positions itself based on this height. I know that's exactly what its supposed to do as the fancybox jQuery returns the viewport by: (line 673 of latest version of jquery.fancybox-1

Why is the first request to a Facebook IFrame App Canvas Page a POST request?

血红的双手。 提交于 2019-12-05 04:26:20
I noticed when I set up my first FB app today (an iframe app accessed within facebook) that all the requests made to it via facebook are HTTP POSTs rather than GET requests. Is there any reason for this? What if I wanted to implement HTTP caching? I'm new to developing on the FB platform, forgive me if this is an obvious question but I've googled and can't find the answer. Facebook POSTs to the initial page in order to pass along the signed request that includes potentially important information for the application. 来源: https://stackoverflow.com/questions/9050230/why-is-the-first-request-to-a

mobile version of Facebook app going into redirect loop

好久不见. 提交于 2019-12-04 18:05:33
I have developed a Facebook app using the C# SDK and it is working fine. Now I want to also enable it on mobiles, so I tried to set the "mobile url" to the same one as my canvas url (which is a cloudapp.net address). However, when I try to access it from a mobile, it seems to go into a redirect loop involving my canvas url, the apps.facebook url and the m.facebook/apps url. Sometimes it goes out of the loop and I get the facebook error message saying : "the mobile version of the app is unavailable because it is misconfigured. It appears to be caught in a redirect loop." I think it may have to

iframe-based facebook app gets unwanted scroll bars with a smaller windows size

放肆的年华 提交于 2019-12-04 17:03:37
I have this Facebook application profile page: http://www.facebook.com/developers/editapp.php?app_id=122313254494566#!/apps/application.php?id=122313254494566 which is associated with my iframe-based Facebook application, Gem Spinner: http://apps.facebook.com/gemspinner/ What I'm seeing is that, depending on the window height, my iframed content will appear with a fixed height and a scroll bar, instead of just flowing down the page (and off the bottom of the page, as necessary), as I would like. When I make the window shorter, the scroll bar appears; when I make the window taller, the scroll

Prevent iframe “This webpage is not available.” error from displaying on website

我们两清 提交于 2019-12-04 04:52:13
问题 Is there a way to prevent the error "This webpage is not available." from displaying within an iframe that displayed on another site? For example, if I have a website and I want to display my Facebook fans in a box, one way to display it is with an iframe (typically Facebook supplied code). However, if for some reason Facebook is down or slow to respond (like it is right now), I get the following displayed on my website where the iframe should be displayed: This webpage is not available. The

Fancybox Positioning Inside Facebook Canvas iFrame

醉酒当歌 提交于 2019-12-03 21:25:33
OK so I have a iframe canvas app with its height set to "Settable" with the facebook javascrip sdk calls to FB.Canvas.setSize(); and FB.Canvas.setAutoGrow(); . These are working perfectly, as the iframe gets set to a certain pixel height based on its content. The problem is that when I make a call to Fancybox, it positions itself based on this height. I know that's exactly what its supposed to do as the fancybox jQuery returns the viewport by: (line 673 of latest version of jquery.fancybox-1.3.4.js ): _get_viewport = function() { return [ $(window).width() - (currentOpts.margin * 2), $(window)

Chrome-only cross-domain scripting errs in Facebook iFrame App upon FB.Login(..)

廉价感情. 提交于 2019-12-03 13:31:07
In Google Chrome (I'm on 9.0.597.98) my Facebook iFrame app using Graph API/Javascript SDK tends to always throw the following two JavaScript errors (see below) based on cross-domain scripting, but only on one page of the app. It goes into an endless retry loop on the second message. After leaving it overnight, it reported a half million retries by this morning! The FB call being used is for login: FB.login(function(response) { if (response.session) { // user successfully logged in } else { // user cancelled login } }); In Firefox and IE9 I do not get these errors. It's specific to Chrome

Setting the height of iframe Tabs for Facebook profile Pages

时光毁灭记忆、已成空白 提交于 2019-12-03 11:09:25
问题 As we know that Facebook has introduced iframe Tabs for Pages. I have developed an application and added the tab of the application in a profile page, application tab is opened in an iframe according to the update "iframe Tabs for Pages". The problem is that height of the page is not adjusted and unable to remove the scrollbars to display the fully page without scrollbars. All the solutions which I found work for the Application canvas page but not for the Application Tab page. How can we do