facebook-iframe

Setting the height of iframe Tabs for Facebook profile Pages

馋奶兔 提交于 2019-12-03 01:33:32
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 that? Landitus It's quite easy to achieve. You have to set up the application in the Facebook

How do I set a timer for a image to appear in javascript or html?

99封情书 提交于 2019-12-02 16:48:34
问题 Currently I have the following piece of code but it isn't working on my facebook iframe application. function Timer(){ document.getElementById('buybtn').style.visibility = "visible"; setTimeout(Timer,1080000); } and the following html: <p style="text-align: center;">'</p> <div id="buybtn"> <p style="text-align:center"> <a href="http://www.google.com" target="_blank"> <img src="http://www.adspecialist.be/wp-content/themes/adspecialist/img/visit-my-website-en.png" border="0" /> </a> </p> </div>

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

吃可爱长大的小学妹 提交于 2019-12-02 01:09:26
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 webpage athttp://www.facebook.com/plugins/likebox.php?id=xxxxxxxxxx&width=182&connections=6&stream

Open Facebook page in iframe or frame?

回眸只為那壹抹淺笑 提交于 2019-12-01 06:39:38
I want to have two facebook pages open at the same time as part of my html page. So when you go to mypage.html, there will be displayed two facebook pages. Is this possible? I get something like: with code like: <frameset cols="25%,75%"> or <iframe height="*" src="http://www.facebook.com/photo.php?fbid=10150277739848763&set=pu.105012493762&type=1&theater" width="100%"> <p>Your browser does not support iframes.</p> </iframe> Facebook prevents you from linking directly to the actual site via IFRAME (or any frame). This is because any site putting Facebook in an IFRAME(or any frame) could use

Open Facebook page in iframe or frame?

亡梦爱人 提交于 2019-12-01 05:17:07
问题 I want to have two facebook pages open at the same time as part of my html page. So when you go to mypage.html, there will be displayed two facebook pages. Is this possible? I get something like: with code like: <frameset cols="25%,75%"> or <iframe height="*" src="http://www.facebook.com/photo.php?fbid=10150277739848763&set=pu.105012493762&type=1&theater" width="100%"> <p>Your browser does not support iframes.</p> </iframe> 回答1: Facebook prevents you from linking directly to the actual site

Facebook iframe FB.Canvas.setAutoGrow does not auto grow after initial load?

泄露秘密 提交于 2019-11-30 22:34:26
I have been building a facebook tab using html and css and facebooks javascript SDK. I having problems with the iframe resizing to the size of the content. I've managed to get it to work on initial load which is cool, using this below script... <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> - <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({ appId : '00000000000000', // App ID channelUrl : '//www.mywebsite.com/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies to

FB.getLoginStatus never fires the callback function in Facebook's JavaScript SDK

淺唱寂寞╮ 提交于 2019-11-30 02:52:56
问题 The simple thing of calling FB.init (right before </body> ) and then FB.getLoginStatus(callback) doesn't fire the callback function. After some debugging, I think the SDK is stuck in the "loading" (i.e. FB.Auth._loadState == 'loading' ) phase and never gets to "loaded", so all callbacks are queued until the SDK has loaded. If I force-fire the "loaded" event during debugging - with FB.Event.fire('FB.loginStatus', 'loaded') in case you're intersted - then the callbacks are invoked correctly.

PHP SDK 3.1.1 getUser() sometimes return 0

↘锁芯ラ 提交于 2019-11-29 06:40:37
This is driving me crazy >=( $facebook->getUser() works well sometimes, but sometimes returns 0 Here is my code: require 'fbapi/facebook.php'; $facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxxxx', )); $user = $facebook->getUser(); the appId and secret are the correct ones. Which could be the reason that getUser sometimes it returns 0??? It's more than likely something on Facebook's end (devs have gone through this before a while back). If $user returns null or 0, simply reroute them to the login url (which you should have). The liklihood of it returning 0 again is minimal

Passing a JavaScript Value to a PHP Variable (With Limitation)

做~自己de王妃 提交于 2019-11-27 22:52:59
问题 I understand that there are existing questions and answers that have already addressed this matter. I've looked through them but my situation doesn't allow me to apply the solutions offered in these threads. Given that JavaScript is client-side and PHP is server-side, these are the 2 solutions offered: GET/POST Method (Post #3) AJAX Method Limitation: Facebook Page Tab Application I cannot use the above methods of passing parameters through URL as Facebook Page Tabs are loaded in an iFrame,

Loading Iframe Facebook (Load denied by X-Frame-Options)

家住魔仙堡 提交于 2019-11-27 21:55:27
My team is in charge of some difficulties with an app on Facebook. We believe this occurred some error in loading the iframe. We discovered this error through Firebug: Load denied by X-Frame-Options: https://www.facebook.com/dialog/oauth?client_id=140656472747871&redirect_uri=https%3A%2F%2Fnuvemapps.com.br%2Fci%2Fncupons%2Fhome%2F%3Ffb_source%3Dsearch%26ref%3Dts%26fref%3Dts&state=32e667a3645c047d751d20811d49ef6b&req_perms=email%2C+publish_steram%2C+manage_pages does not permit framing. This happens mainly with people who have not allowed the app, so we do not know specifically where this