I want to embed iframe section on account tab. I've created simple Visualforce page with
Standart Controller - Account.
<apex:page standardController="Account">
<h1>Congratulations</h1>
This is your new Page
<div>
<apex:iframe src="https://www.facebook.com/" width="800" height="600" />
</div>
</apex:page>
I've added a VisualForce section into account layout. But I'm unable to see my
iframe content in the result details page.
It seems that iframe content is rendered only if my iframe is related to salesforce
domain.
So my question is: Is it possible to embed external domain page into standard details page?
Facebook does not like people framing its content. I believe that is the problem rather than it being salesforce related. To be sure, try swapping the facebook url for this:
"http://www.clubpenguin.com/"
If that works, then you know it's not salesforce blocking you but facebook.
(Club Penguin is just a site I know that happens to allow iframes, so it's a good one to test with!)
When you try and frame facebook you will probably find this error if you look in a browser debugger:
Refused to display document because display forbidden by X-Frame-Options.
There is a discussion of this error here:
Overcoming "Display forbidden by X-Frame-Options"
Related
I can't seem to find an answer to this, since most answers assume you can include an {a href> tag.
I have a google form embedded into Wordpress for customers to submit details. It is embedded using and iframe using the share code from the google form itself.
On the confirmation page after the customer has submitted a response, we have a link for a customer to click to process an order, however this opens our own website again, within the iframe.
I want to open this in the parent window. Is it possible?
NB Google Forms appears to not let me mark up the link. If i put <a href="https://example.com>Click HERE{/a> - it just makes the https://example.com a link within the tag.
When using 'Embed this post', if a user clicks on a link anywhere within the iFrame it destroys the html inside. You can replicate this issue by following these steps.
Click '...' at the top right of a post.
Go to 'Embed this post' and copy the iFrame code.
Paste the iFrame code somewhere you can test the HTML.
Click a link anywhere in the embedded post.
At this point you'll see the post disappear. The head and body HTML code is destroyed.
I duplicated the issue here.
<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:6481527492011139072" height="777" width="504" frameborder="0" allowfullscreen=""></iframe>
Try clicking on the LinkedIn icon on the top left or the like/comment/share buttons.
I tried reaching out to LinkedIn support on their website but their team directed me here.
Refused to display 'https://www.linkedin.com/authwall?trk=gf&trkInfo=AQFSSEZsXsstdAAAAWi4pJ9YQaz5O2_6IRmktVz1kDhxt_uchm59um--vI7OCCG1Nkz-xFDMqtML8ee4C6Min8NUMPsH3DihIAb3hbhB1WUdxyaT2NxjuAgsaAq6GPKgXJra2gA=&originalReferer=https://www.linkedin.com/embed/feed/update/urn:li:share:6481527492011139072&sessionRedirect=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Faps-technology%3Ftrk%3Dpublic-post_share-update_actor-text' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'"
The content is prohibited from being displayed within an IFRAME due the Content Security Policy being set. The webserver hosting linkedin.com is configured to add a HTTP header to the response object. Specifically they are setting the Content-Security-Policy tag to frame-ancestors 'self'. There is no way you'll be able to embed their pages into a page of your own using IFRAME. There are other techniques that you could use to work around that, but none are as simple as an iframe tag.
W3C Content Security Policy Level 3 - Frame Ancestors
So, it's not something that isn't working, but it's Linkedin that don't let you do it. If you look at the urls you are going to open, also, you could see they are behind the auth wall of linkedin
Simple question really - does content from an external site rendered in an iframe count as a page hit for the external content provider?
If my page www.mysite.com/iframepage has an iframe loading content from www.yoursite/yourpage would views on my page count as traffic to both sites?
Yes.
Whatever happens inside the iframe is as if you had opened the page in a normal browser window.
I am not sure why this is happening. But, When i try to post Link Omitted on the company's facebook page, the thumbnails aren't loaded by the facebook. Whereas if I try to post some earlier link from my website, like Link Omitted, all the pics from that page are loaded.
Can someone tell why this happens...Also, sometimes, facebook doesn't load all the images from page.
You rely on how Facebook scrapping your page content which isn't a best way to achieve what you want. The reason you see image for older links is probably caching.
To ensure you have images with posting your content on Facebook you should add og:image OpenGraph meta tags.
For more info on this read OpenGraph documentation and use Facebook Debug tool to check if you have any issues with scrapping and/or all details scrapped correctly.
I set up my website's facebook account as a Page on my facebook account (this was probably incorrect, but I didn't know better at the time). I have switched my account to Use Facebook as a Page. I am trying to create a like box with avatars for my website (www.zealforadeal.com). I get the error code: To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself. How can I create a Like Box for my page (http://www.facebook.com/zealforadeal) ?
(I never use my facebook account for anything other than the Page)
I think you are confused about the purpose of the 'Like box'. The 'like box' shows the people who have 'Liked' your Facebook page,and your Facebook page status updates.https://developers.facebook.com/docs/reference/plugins/like-box/
Just go to the like box page and paste your url (http://www.facebook.com/zealforadeal) into Facebook Page URL field.