Author Topic: Getting iframes to open automatically  (Read 4005 times)

Offline hidden

  • ???
  • Posts: 1
Getting iframes to open automatically
« on: February 25, 2011, 09:47:33 AM »
 
 I am the admin for a car dealership's Facebook page, and I have a problem with iframes. How can I get the iframe to open automatically when the FBML app is selected? I have placed their used and new car inventory links into iframes, I just wish that after clicking on the app, you don't have to click another link to make the iframe open. Can this be done?

Offline hidden

  • Sami
  • Administrator
  • Senior Member
  • *****
  • Posts: 5924
  • Not a geek. Just a Nerd.
    • CSB Tutorials
Re: Getting iframes to open automatically
« Reply #1 on: February 25, 2011, 12:51:30 PM »
I am not versed in Facebook protocols.

But I do know that the standards for Facebook are changing this year, especially iframes.
Static FBML and FBML tab applications (which allow iframes) are still working but Facebook is encouraging move away from FBML.
blog post in Feb, 2011:  http://developers.facebook.com/blog/post/462
Quote
On March 11, 2011, you will no longer be able to create new FBML apps and Pages will no longer be able to add the Static FBML app. While all existing apps on Pages using FBML or the Static FBML app will continue to work, we strongly recommend that these apps transition to iframes as soon as possible. Lastly, we want to be clear that our deprecation of FBML does not impact XFBML, such as the tags that support social plugins.

This tutorial site explains the setup and use of iframes for Facebook, with the intent to move forward with Facebook.
Quote
...February 10 iFrames are allowed on both Page tabs and Canvas pages AND they don't require an activation to load them!
Read more: http://www.hyperarts.com/blog/adding-iframe-application-to-facebook-fan-page/#ixzz1EzhILMGy
This is the best option for you now I think.


Note that I used to send people to this page:
http://www.hyperarts.com/blog/how-to-add-iframe-to-static-fbml-page/
Towards your question specifically, that page states:
Quote
You cannot have an iframe in a Static FBML application tab that loads when the user hits the page. As with JavaScript, Facebook requires a user action before it will execute JavaScript or load an iframe.

Thanks for visiting samisite.com!
« Last Edit: February 25, 2011, 01:11:58 PM by Samrc »
-Samantha
TNG: "Sometimes, you can make no mistakes, do everything right, and still lose" - Capt Picard to Data
(:turtle: In memory of Turtle: May 22, 1944 - Nov 24, 2007  GURU, mentor, and really nice guy! :turtleleft: )