Questions tagged [facebook-iframe]

374 questions
84
votes
1 answer

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

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…
Aaron Gibralter
  • 4,773
  • 3
  • 35
  • 50
28
votes
4 answers

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

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:…
Diogo Souza
  • 298
  • 1
  • 3
  • 7
19
votes
6 answers

Setting the height of iframe Tabs for Facebook profile Pages

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…
Ahmad
  • 201
  • 1
  • 2
  • 4
13
votes
1 answer

Blank Canvas => 'Refused to display document because display forbidden by X-Frame-Options.'

when the canvas app is loaded within the iframe nothing is display and on Chrome Firebug Console I see the error: Refused to display document because display forbidden by X-Frame-Options. I tried this solution: Overcoming "Display forbidden by…
Leonardo Dario Perna
  • 1,045
  • 2
  • 10
  • 23
10
votes
6 answers

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

The simple thing of calling FB.init (right before ) 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…
Dan
  • 103
  • 1
  • 1
  • 5
9
votes
5 answers

PHP SDK 3.1.1 getUser() sometimes return 0

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 =…
9
votes
2 answers

is it possible to use iframe in UIWebView?

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…
Piscean
  • 3,069
  • 12
  • 47
  • 96
8
votes
2 answers

Hide facepile if user isn't logged in or no friends are connected to site

I use the Facepile pluging (iFrame) to show friends of the user who are connected to my site. However, if the user isn't logged in or has no connected friends, there is a big blank box in place of where the plugin should be. Is there any way to hide…
psychotik
  • 38,153
  • 34
  • 100
  • 135
8
votes
3 answers

How to do FB.ui({ method: 'auth.login' ...) with display: 'iframe' instead of 'popup'?

I'm working on a login for a simple Facebook app. I'm able to use the JavaScript SDK to successfully present a login / extended permissions dialog in a popup window with either FB.login or the following code: FB.ui({ method: 'auth.login', perms:…
Weston C
  • 3,642
  • 2
  • 25
  • 31
7
votes
1 answer

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

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?…
Ben Waine
  • 1,650
  • 3
  • 21
  • 34
7
votes
4 answers

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

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…
John K
  • 28,441
  • 31
  • 139
  • 229
7
votes
2 answers

jQuery is not working in my Facebook Application in Internet Explorer - Access is denied

Just spent about 5 hours sorting out this issue, so I thought sharing how I overcame it would be helpful to someone and save them some time (it seems to be a pretty recent fix - 9 hours ago at the time of posting this question - which I found…
Marty
  • 39,033
  • 19
  • 93
  • 162
7
votes
3 answers

Facebook Is it possible to grab a user's data and populate a form in an iframe?

I am trying to create an iframe tab for a Facebook Page. On this page, I am loading in an iframe which consists of a form from another domain/site. Is it possible to use javascript to query the graph api to load the user's data into this iframe…
super9
  • 29,181
  • 39
  • 119
  • 172
7
votes
2 answers

Locale=nl_BE (Dutch Belgium) no longer supported (in iframe like button)?

We are a site located in Belgium. We added the 'locale=nl_BE' parameter to our iframe like button so it says like but in the Dutch language (= "vind ik leuk"). This no longer works. When we change the locale to nl_NL (also Dutch language) the like…
JeroenVdb
  • 798
  • 1
  • 12
  • 21
6
votes
2 answers

Responsive design on site that is viewed via an iframe

I am working on an app that will be deployed to Facebook therefore viewed from an iframe inside of Facebook's chrome. I have some basic media queries that linearise the content at a set viewport size. When the site is viewed in the browser locally…
RyanP13
  • 7,413
  • 27
  • 96
  • 166
1
2 3
24 25