Internet Business Blog
« Previous | Home

 

Facebook Fan Pages and Static FBML Part 3: iFrames!

Share/Bookmark

July 6, 2010

Facebook Fan Pages and Static FBML Part 3: iFrames!

Facebook Fan Pages and Static FBML Part 3: iFrames!

In Facebook Fan Pages and Static FBML Part 1 I showed how to setup a Facebook Fan Page and in Facebook Fan Pages and Static FBML Part 2 I showed how to use Static FBML to customize the page and to create a form that the user could fill out and it would send you an email using AJAX without ever leaving Facebook.

In this article I'm going to show how to use these techniques to make a Fan Page use Static FBML to display an iFrame.

If you don't know what an iFrame is, it's a method of embedding a web page in a web page. A portion of the main web page has a "window" that is another web page, from the same web server, or from a different web server. There's lots of uses for this and I won't cover them here.

I'm a little hesitant to show this information because I fear that Facebook will block it from working as they have other techniques to display iFrames.

You can see an example of an iFrame in a Facebook Fan Page on the Fan Page for my photo gallery site: www.facebook.com/pqGallery after you click the "Like" button, click the "Slideshow" Tab. Once on the "SlideShow" Tab, click the "Click to Load SlideShow" Button and you'll see an iFrame load that contains a dynamic image slideshow.

Why do you have to click the "Click to Load SlideShow" button? Because Facebook will not automatically start an AJAX command, they require the user to click something. This has the obvious down side of the user having to click something to see your iFrame, but the upside of giving you the ability to have several buttons that they could choose from to load exactly what they want to see.

So, how does this work? First, you HAVE to master what I covered in Part 2. If you can't get that to work, the iFrame technique will not work. Once you can do that, you can use the same technique to make the iFrame. Instead of processing a form and sending an email, the php code that you put on your server sends back to Facebook, via the AJAX connection, the code for your iFrame... and it works!

Below is the exact Static FBML code I use on the pqGallery SlideShow tab. Please Note: you will need to change the call to my server and my php file - I've put in a comment just before this line of code:

Below is the exact content of the PHP file that gets called. pqGallery actually generates this for you for embedding iFrame slideshows of images, so all I had to do here was to copy and paste the code it generated.

As with the examples in the previous articles, it can be frustrating to debug this type of setup. However, eliminating one element at a time until you get something to work is the best way, then, add back what you removed, again, one element at a time and then you'll find the offending code and can work to fix it.

Until next time,
Fred

About the Author

Fred Black is an experienced online business operator, programmer, web site developer, father, husband, musician, and songwriter. Visit his Internet Business Blog at: http://www.pqInternet.com.


You may reprint or distribute this article as long as you leave the content and the About the Author resource box at the end intact.


Get Free Updates! Enter your name and e-mail address to receive a short notice each time I make a new post.

First Name:

Last Name:

E-Mail Address:

E-Mail again:

NOTE: You will receive a confirmation email. You must click the link in the email to activate your free updates. Please check your spam folder(s) if you don't receive the email.


Share/Bookmark

Tip Jar: Leave a Donation

Comments: 22,   TrackBacks: 0.

Posted by Fred on July 6, 2010 | Printer-Friendly

TrackBack: http://www.pqInternet.com/Blog/mt-tb.cgi/230


Assigned Categories: Social Media | Web Site Design, HTML, CSS


Related Entries:

 

 
Comments and TrackBacks 
  Comments:
  1. From: William Chen

    That's some progressive code, mate... I'd like to see more of your ideas!

    Posted by William Chen on July 7, 2010 9:24 AM

  2. From: Jane

    Thanks for clarifying about the iFrame. Now I can put some features on my Facebook fan page.

    Posted by Jane on July 10, 2010 9:05 PM

  3. From: Uzi

    I can't believe that facebook allows iframes. It means that we can load any dynamic page inside the iframe. How would facebook know that we are not going against their policies?

    Posted by Uzi on July 13, 2010 5:12 AM

  4. From: Anne Haynes

    I really like this series. I'm a novice programmer and need instruction to make things work. I can read the code, but writing it is another story. You give enough information for me to troubleshoot and that's saying a lot!

    Thanks again!

    Posted by Anne Haynes on July 13, 2010 6:13 PM

  5. From: Mr. Basota

    Hey dude, thanks for this nice information. Without this post, i can not imagine that facebook uses iframes.

    Posted by Mr. Basota on July 15, 2010 11:25 AM

  6. From: Lara

    This is definitely a helpful (series of) post(s). Newsletter sign up box works excellent! Thanks!

    Posted by Lara on July 18, 2010 3:39 AM

  7. From: Paul

    I never would have guessed that facebook used iFrames. As a newcomer to the programming industry I just want to thank you for this awesome post. The code really helped not only in this specific project, but in helping me understand other similar projects as well.

    Posted by Paul on July 20, 2010 10:06 AM

  8. From: Billy

    WOW!! I was just having a discussion with a colleague about how I wish I could have some sort of way to customize Facebook like I was able to through html with myspace. Your process is precisely what I was looking for, now I have to somehow master the code. Nice photos of leaves by the way. Thank you!!

    Posted by Billy on July 21, 2010 6:22 PM

  9. From: Angelie

    Been managing my fan page, and this is the first time I get to know that one could customize such page. Thank you for sharing that code.. think I'll have to try it for my fan page.. that's another discovery and if it is possible for me to apply it on my page then I guess I have to share it for my friends. Thanks again for sharing.

    Posted by Angelie on July 22, 2010 3:02 AM

  10. From: Laynia

    That's an awesome bit of code you've given us here. Thanks a lot!

    Posted by Laynia on July 22, 2010 2:18 PM

  11. From: Jan

    I have been reading a lot lately about FB fan pages but haven't as yet decided to set one up. Are they really worth the time and effort?

    Posted by Jan on July 26, 2010 5:38 PM

  12. From: piojita

    is there any way to do that load without a user action ?

    Posted by piojita on July 28, 2010 10:38 AM

  13. From: Steve Marino

    Thanks so much for this series of posts (well I'll thank you even more once I've got it set up). I had no idea that Facebook could be customized this way and I've not seen anyone else doing it either.

    Posted by Steve Marino on July 28, 2010 7:10 PM

  14. From: Maritime Lawyers

    Thank you for sharing (series) of information pertaining to the possible activities which we could do in facebook. My idea about using facebook is too little and this post made me realize the other alternatives. Now, I have ideas about customizing my page. Thanks to your post!Looking forward for you new valuable information concerning this matter.

    Posted by Maritime Lawyers on July 31, 2010 4:32 AM

  15. From: Darrin

    Wow, very detailed post on configuring Facebook pages. Good work.

    Posted by Darrin on August 1, 2010 11:56 AM

  16. From: Jenny

    I did know that you can customized your fan page from FB! Thanks for sharing!

    Posted by Jenny on August 2, 2010 4:54 AM

  17. From: Ritrattista

    Among the social networking sites that we had today, Facebook is my personal favorite because of the fact that you do a lot of things with Facebook. I used to customize and update my FB account daily but I never knew that i can do the same with my fan page. I'm so glad with this new discovery and I will definitely share this to my friends. Thanks a lot for sharing.

    Posted by Ritrattista on August 7, 2010 3:10 AM

  18. From: Ritrattista

    Thanks for sharing this information. It's a big help for me to build my fan page and customize my page in Facebook. Maybe after I customize my page, other people will attract and add me as a friend.

    Posted by Ritrattista on August 9, 2010 2:31 AM

  19. From: Moving Quotes

    An old post, but I haven't noticed the iframe feature on my personal facebook account! Bookmarking this and applying the script later. Thanks for sharing!

    Posted by Moving Quotes on August 11, 2010 5:46 PM

  20. From: Petr Macek

    Thanks for the post, a bit too techy but I will get through it :), right now I am planning to create my own customized tab so this info comes handy :) Thanks, Petr

    Posted by Petr Macek on August 13, 2010 5:16 PM

  21. From: DropShip

    Excellent series you have here. This code should be really helpful, thanks so much for sharing :D

    Posted by DropShip on August 17, 2010 3:21 PM

  22. From: Gemma

    This was extremely helpful for me! I hope to read more of your tutorials in the future!

    Also, as a side note: do you recommend other social networking sites for businesses aside from twitter and facebook?

    Posted by Gemma on August 19, 2010 2:45 PM

 


Post A Comment




Remember personal info?




Comment Policy <--- Read the comment policy (Updated 1/13/2010).

About  Contact  Free Products Fred W. Black

Blog Feeds, EMail, etc.:

Subscribe by EMail

RSS 2.0 Feed for www.pqInternet.com.
Add to Google Toolbar

Free Updates via EMail

Receive Free Updates.

Free Products and Software.

Search

 

Link to Me!

How to Link to this Blog.

Products

Products I Use & Recommend

www.3WayLinks.Net

www.1WayLinks.Net

Free Traffic System

Wordtracker Keyword Research Tool

www.aweber.com Opt-In List Management.

1&1 Hosting

Categories

All

ClickBank

Copywriting

Free Videos

Funny

Internet Business

Internet Marketing

Life

Search Engines: SEO

Social Media

Technology

Traffic

Truth and Freedom

Web Site Design, HTML, CSS

Recent Entries

Facebook Fan Pages and Static FBML Part 3: iFrames!

Facebook Fan Pages and Static FBML Part 2

Facebook Fan Pages and Static FBML - Part 1

Texting Social Media Updates - Useful vs. Useless

Success or Failure in an Internet Business Depends on Who's Looking Back at You in the Mirror...

Bullets from God - The Greatest Copywriter of All Time?

Success is not Sticky - You Have to Hold the BALL!

Birthday Salute!

New Layout

What's the Value of a Link to SEO (Search Engine Optimization)?

Internet Business Ethics 101

Exploding Your Copy (and life) From Sissy to SEISMIC.

Long Tail Keywords

I'm a Slasher!

Start Your Own Home Internet Business with these 7 Easy Steps...

All Entries

Recently Commented On

Mozilla Thunderbird Email Client - Part 2: Corrupted Inbox

Facebook Fan Pages and Static FBML - Part 1

Long Tail Keywords

Bullets from God - The Greatest Copywriter of All Time?

Success is not Sticky - You Have to Hold the BALL!

Success or Failure in an Internet Business Depends on Who's Looking Back at You in the Mirror...

Replacing a ClickBank Vendor's Sales Page with Your Own.

Facebook Fan Pages and Static FBML Part 2

Archives

All

Blog Roll

Clayton Makepeace

Terry Dean

Ryan Healy

ProBlogger

Internet Business Resources Blog

Michel Fortin

G. Brent Riggs

Jonathan Leger

Mark J Ryan

Dr. Joe Vitale

Search Engine Journal

Friday Traffic Report

Links

Cell Phones for Soldiers

Front Street Playschool

Clebe McClary

the IconFactory

Fred Black Music

Daryl Laws Sports Performance Blog

Williams High School Booster Club

Jacob Ingle

Light Peak

EasyIRS.com

Web Hosting

My Recommended Web Hosting Service: 1&1 Hosting

Mugs, Mousepads, etc.

About this Blog...

By:Fred W. Black

Contact Information

Powered by:Movable Type 3.34.

Copyright 2006 -2010, PhaseQuest.Com.
All rights reserved.

Subscribe by EMail RSS 2.0 Feed for www.pqInternet.com.

Add to Google Toolbar
My Facebook Fan Page
Twitter
Add www.pqInternet.com, to Google. Add www.pqInternet.com, to My Yahoo! Add www.pqInternet.com, to My MSN. Subscribe to www.pqInternet.com, with Bloglines Add www.pqInternet.com, to Your Technorati Favorites! Add www.pqInternet.com, to Windows Live

rs

Some photos are by: Lee Hinshaw Photography

© Copyright 2006 - 2010 PhaseQuest, all rights reserved.

 

Get Free Updates!

Insert your name and e-mail address to receive a short notice each time I make a new post.

First Name:

Last Name:

E-Mail Address:

E-Mail again:

NOTE: You will receive a confirmation email. You must click the link in the email to activate your free updates. Please check your spam folder(s) if you don't receive the email.

*I value your privacy and will never sell, rent, giveaway, or abuse your information.