facebook-iframe

Facebook iFrame app - getting rid of vertical scrollbars?

瘦欲@ 提交于 2019-12-24 03:39:25
问题 I've converted a Facebook app from FBML to iFrame (with PHP SDK) and now have vertical scrollbars displayed for the same amount of content I had before (a logo, a flash game and a line with 3 links below). But earlier I didn't have any scrollbars. If I set the app setting Auto-Resize, then the lower part of content isn't displayed at all - which is bad, the flash game is unplayable then. I've searched around and all suggested solutions involve Javascript, but I'm actually using PHP SDK. Isn't

How to display iframe by a Javascript snippet?

删除回忆录丶 提交于 2019-12-23 04:29:21
问题 I have seen some widgets online that gives the user the possibility of including a short Javascript snippet in their own page, which when executed displays an Iframe, like in the following example. <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:facepile></fb:facepile> How can I do this by myself - have a javascript on my server, that when called on a remote server, writes out an iframe or loads content into their page? 回答1: I

mobile version of Facebook app going into redirect loop

99封情书 提交于 2019-12-21 22:00:48
问题 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

Facebook iFrame app - how to fetch Preload FQL result using PHP SDK?

孤街浪徒 提交于 2019-12-21 05:15:20
问题 since few years I have an FBML app (a small Flash game) which I'm now trying to convert to an iFrame app. Unfortunately there aren't many docs for Facebook iFrame apps yet. For my game I need the user's first name, picture, gender and the city. In my old version I had this preload FQL (created once by a PHP script): $fql = array('info' => array('pattern' => 'facebook', 'query' => 'SELECT first_name, sex, pic_big, current_location FROM user WHERE uid={*user*}')); $fb->api_client->admin

is it possible to use iframe in UIWebView?

a 夏天 提交于 2019-12-21 04:05:33
问题 i want to add a facebook like button in my app. in developer.facebook.com i couldn't fine anything about that. is it possible to use iframe created by facebook like button in UIWebView? it think if its possible then i can add a UIWebView in my app which use that iframe. thanx. please write some example code. 回答1: Yes that is possible you can use the iframe in webview. You need to load the webview with the HTML string. You can also find the related code of HTML for iframe if you search over

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

。_饼干妹妹 提交于 2019-12-19 03:46:06
问题 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

How does Facebook set cross-domain cookies for iFrames on canvas pages?

喜你入骨 提交于 2019-12-17 04:39:34
问题 I was browsing Facebook's documentation reading about canvas applications and I came across an example application: http://developers.facebook.com/docs/samples/canvas. As I read through their example, however, I got very confused about their use of cookies in the iframe application. A little backstory... I had already played around with using iframes for embeddable widgets (unrelated to Facebook) and I found out a few browsers (Chrome, Safari, etc.) have strict cookie policies and don't allow

Force facebook app to use page tab iframe

笑着哭i 提交于 2019-12-13 03:31:14
问题 I have an iframe facebook app currently running on a page tab. Unfortunately, when people share some of the links within the page, the resulting shared links send users to the original content on the server and not to the facebook page tab. How can I force users who arrive directly at the URL into the page tab iframe? 回答1: I found the solution: basically you can use the facebook javascript api to detect if you are within the iframe. If not, redirect. Here is the code: // Test if canvas page

Facebook Like button not displaying/showing in any browser

强颜欢笑 提交于 2019-12-12 16:51:06
问题 We are having an issue with the Facebook like button not showing/displaying, on this page: http://powertextblog.esvelte.net/ It appears that the span and iframe that are generated have an inline style of width:0px and height:0px , I have tried overriding this to no avail. The button is not showing in any browser. This is the code we're using on the page (from AddThis) to generate the button. <a class="addthis_button_facebook_like" fb:like:layout="button_count" addthis:url="http://www.facebook

Javascript not running on Facebook iframe

a 夏天 提交于 2019-12-11 19:39:58
问题 I have a django project which is intended for a facebook application. In the project, the invite friends module runs fine in localhost! But while it is loaded in facebook application, the javascript responsible for displaying the friends list doesn't work. Although the libraries are properly loaded. I don't know why it is so. May be some iframe problem. Here is the javascript code <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({appId: '460948667348013', cookie: true