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.
Related
I have been creating one little facebook page tab for my company and I have encountered on problem.
I need to link to another website
Visit my website
But facebook wont open linked webside, instead show empty page. Is there some trick how to do this? Some specific tag I need to add somewhere or how to do that?
Thanks
Your page tab app is shown inside an iframe on facebook.com. Likely that other site sends an X-FRAME-OPTIONS header, forbidding the browser to display it in 3rd-party (i)frames.
But presumably you don’t want to display that page inside the iframe to begin with? Then simply add a target="_blank" to the link, to have it open in a new tab.
I have a Facebook Tab (also called an app these days) that sits in a Facebook 'business' page as a tab and lives inside the usual facebook iFrame.
There is a Share button at the bottom for users to share the Tab/app.
I want to customise the content of the pop up dialog box.
There is a new and easy way to customise the Title, Description, Image and anything else - simply have OG Meta tags in the header of the page.
These are ignored in this instance because the share button only scrapes the top meta tags which occur outside the tab's iFrame.
Surely this is a huge oversight on Facebook's part?
You can only use an external URL with the Open Graph Tags and redirect to the Page Tab with JavaScript. This is the recommended way anyway, because Page Tabs don´t work on mobile, so you can just NOT redirect on mobile devices and show the Tab directly without Facebook.
I have a wordpress site which is meant to use via Facebook page tab. I have made a page tab and added an iframe tag which opens the site into the page tab. I have added a Facebook plugin (http://wordpress.org/extend/plugins/facebook/) to publish new posts to my page's wall to get more traffic to the site. All this works perfectly.
My problem is the following:
The plugin publishes a link to e.g. www.mysite.com/fb/new-event/. The site is meant to use only via the page tab, not at that domain. The link should be customized to open the page in the Facebook page tab via iframe.
Does anyone have an idea how to fix this or how to achieve the solution another way?
I think that it can be done by customizing the link to point first at the right Facebook page tab and then inside the iframe to the correct page.
I want to make a Facebook Like Button for Facebook's individual page.
For example: http://www.facebook.com/michelleobama/posts/10150938120900578
I get the code from facebook developer's page, and put on it to a my html.
My html: http://dl.dropbox.com/u/188423/like.html
But raised a error.
So, I try to check the url by URL Linter.
It say "Facebook Can't Crawl Itself. Sorry!".
Dose it possible that I want to do?
Unfortunately Facebook won't scrape OG tags from Tab Apps. However you can let Facebook scrape Canvas apps (apps on apps.facebook.com). If you want to implement multiple Like buttons inside a Tab I recommend setting up simple HTML pages that include the appropriate OG tags as well as a redirect to your Tab in either a Canvas app (this way it feels like you're never leaving "The Facebook experience") or some external location (on your web server).
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 ;)