Here I am working with facebook application.
I have create page which are working in facebook iframe window.
I want to access main(Parent) window html source from iframe which create by me.
Here I have tried for
parent.document and window.top.document and window.parent
all three are not working in my case. If you have any other idea then let me know,
Thanks
You can't access content outside of your IFrame.
Otherwise you could change content outside of it and modify Facebook,
just because your IFrame is loaded inside of Facebook ;)
Related
I want to open Facebook page inside iframe but does not render page when I try to just include IFrame with src pointing to Facebook.com. Right now I am opening it inside a window but want to open it inside a frame.
Is there any way to open Facebook page in IFrame?
Facebook, as most serious sites explicitly disallow this in order to prevent clickjacking.
One of the ways Facebook do this is by sending the 'X-frame-options:deny' header, which instructs your browser to not display the page inside an iframe.
Are you talking about a facebook page within your own website?
If so;
<iframe src="http://www.facebook.com"></iframe>
If not could you provide more information.
Update
See below comment. It seems Facebook blocks it's pages from being includes in iframes.
I have created an HTMl5 template in Facebook using the Static Iframe Tab. I don't really want other admin users - trying to download my content and stealing my work. Is there anywhere I can hide/prevent the URL links appearing for each page? When I hover on items on the Iframe, the URLs appear in the (Firefox) Browser window at the bottom? I would be grateful to know if there is a a way to hide them or prevent them being downloaded (i.e. just allow the the IFrame tab access?)
Not with HTML. But you could build your website in flash and have much better control over the content and linking.
I'm changing from using Static FBML to dynamic pages. The only XFBML tag I'm using is fb:like.
Anyway, it renders fine on my test server, and then again on facebook under the app's URL.
I want to put it on the tab of a Fan page I manage.. how can I get it on there?
IFrames aren't available in tabs yet... you need to use FBML and fb:like is not a valid FBML tag.
They wanted to change this because they are beginning to deprecate FBML. But you should try the iFrame hack instead.
I'm not able to find it on google right now but it works like this:
You create a fb:js-string with the fb:iframe tag in it and then load it in a div as soon as the user clicks something.
I am looking out for a way to embed a google map into a static fbml tab in one of my fan pages. I think few saw FB has scrapped of iframe support for static fbml and stuff. I want to embed the map wthout any user actions involvement.
I am wondering how to do this? Could some one help please?
The iframe doesn't work on landing page of a tab, it works in inner pages. For example if your landing tab page is index.php, you need to make on image or link on that page to go to inner.php page and this is where you can use the fb:iframe tag. In your iframe you should be able to put google map.
I am trying to add a fan box on my fan page using the <fb:fan> tag. But it just doesn't get rendered on the page.
I also tried using an <fb:iframe> as mentioned here, and setting its source to another file which contains the code for <fb:fan> tag. But even that doesn't work.
This wont work in StaticFBML. The only work around is to use an iframe with StaticFBML. In the Iframe, you can then load the widget.