Facebook has been very busy updating how things are done, and one of the changes is how you create an iFrame application tab.
Although the concept is pretty much the same, the interface for creating a Facebook iFrame tab app has changed. This tutorial updates a tutorial we did on this subject earlier this year.
An iFrame application you allows you to embed an external Web page in your custom Facebook Page tab. Your "index" or "canvas" page is actually hosted on a non-Facebook server and is surrounded by Facebook "chrome" (the Facebook elements on the page).
Because this iframed page isn't hosted on Facebook, it can use standard HTML, CSS, and JavaScript like any other Web page does. Interactions with Facebook content are done using the Facebook Software Development Kits (SDKs) and XFBML tags. (For this tutorial, the Facebook SDK is not required.)
The downside of this approach is that you need to be familiar with those technologies and you will need a Web-accessible server where you upload the files for your application page. Or you can add an iFrame-creation application to your page, such as TabPress, freeing you from having to create a Facebook application but more restrictive in that you can't control the icon that appears next to the tab name in the left navigation.
Setting up your server
Facebook's HTTPS / Secure Hosting Requirement The first thing to know is that wherever you host the index page of your Facebook iFrame application, the server will have to be secure, i.e., have an SSL Security Certificate for the domain under which it's hosted.
The other assets called into your page (images, JavaScript, CSS, video, etc.) will also have to be hosted under HTTPS. We recommend Amazon S3 hosting for this, and this is also addressed in our HTTPS article.
Create your iFrame application
On your secure Web server, create a directory for your iFrame application. In this example, we are going to create a new directory on the server called "facebook" and then a subdirectory called "mytestapp". The file path will look something like this in your FTP program:
You will want to put all of your files (HTML, CSS, Javascript, PHP, etc) in this folder or its subdirectories. If you don't know how to do this, read this FTP tutorial.)
Your HTML file
Remember, in your HTML file you can utilize CSS — and inlining styles with the <style> ... </style> tags works fine with iFramed HTML files — and JavaScript (Do not use FBML or FBJS!).
You'll want to set the main container DIV for your content to 520 pixels wide. Here's a very stripped-down example of your HTML file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link rel="stylesheet" type="text/css" href="style.css" /> <style type="text/css"> body { width:520px; margin:0; padding:0; border:0; } </style> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <div id="container"> <p>This is some HTML content</p> </div> </body> </html>
In the above example, I include both the code for an external stylesheet called with the <link /> tag, as well as inlined styles called with the <style> ... </style> tags, in case you want to do it that way. Either should work fine.
Installing the Facebook Developer Application
The first step in creating an application in Facebok is to install the Facebook Developer application.
If this is the first time you've installed the Developer Application, you will see the Request for Permission dialog show below:
Click the Allow button to proceed.
Creating your iFrame application
Now that you have the Developer App installed, click on the Create New App button.
Give you application an "App Display Name" (the name displayed to users) and a "Namepace" (for use with Open Graph — 8-character minimum; alpha, dashes and underscores only — keep trying until you get a Namespace that hasn't been used). Then tick the "I agree to Facebook Platform Policies" box; then click the Continue button.
On the next screen, enter the security phrase and then click Submit.
There are a lot of options you can tweak related to your application. In this post, we are going to focus on the basics needed to get your iFrame tab application up and running.
The Settings Tab
This is where you do the basic set up for your app.
First, at the top, you'll see the App ID and App Secret values. Most frequently you'll be using your App ID to integrate with Facebook.
Second, notice the "edit icon" below the App Secret. This is the icon that will appear to the left of your tab's name in your page navigation, so make it eye catching and make the dimensions 16 x 16 pixels. If you don't create your own icon, your tab will have a generic Facebook-tab icon:
Basic info:
App Display Name: Make this the same as the original value you provided;
App Namespace: Make this the same as the original value you provided;
Contact Email: Where you want Facebook to send emails regarding your app;
App Domain: just put "mydomain.com" where "mydomain.com" is your secure hosting server;
Category: Select a category from the pulldown list.
Cloud Services Since Facebook instituted their HTTPS requirement for all applications, they started offering cloud hosting solutions for those who find setting up a hosting account and secure server too much bother, expense or both. But click the Learn More if you're interested.
Select how your app integrates with Facebook
This is where you select the type of application you're creating and how it integrates with Facebook.
An explaination of the Facebook-integration values
For the purposes of this tutorial, you will select "Page Tab" from the various integration options. It's the last one listed but once you've saved your changes it will be listed first (as in the above example).
Page Tab Name: The displayed name of the tab in the Page navigation;
Page Tab URL: The unsecure URL (HTTP) of your index page;
Secure Page Tab URL: Same as the "Page Tab URL" but with HTTPS instead of HTTP;
Page Tab Edit URL: You can create any URL at your domain here and then set up that URL to redirect to the Edit Page for the Facebook tab. This is commonly done using a 301 or 302 Redirect. I'm not covering 301/302 redirects in this tutorial;
If you intend to use calls to the Facebook JavaScript SDK on your tab - Add "App on Facebook" values
If you want to use the Facebook JavaScript SDK in your Page Tab — for example, our Share Button for Page Tabs — you will also need to select the "App on Facebook" integration, and add the same URL values as for "Page Tab":
The "Canvas Page" value is autofilled by Facebook, with your Namespace value.
Click "Save Changes" and you're done!
Installing your iFrame application on your Fan Page
Once your Facebook application has been created, you will need to add it to your Fan Page. To do that, click on the View App Profile Page link in the left column of your application page:
Now click the Add to My Page link on the left.
In the popup dialog, find the page to which you want to add the tab, then click the "Add to Page" button. The button will then change to "Added to Page."
Your new iFrame app should now appear on your Fan Page. If you don't see it there right away, you may need to adjust your Page settings. From your Fan Page, click on the "Edit Page" button in the top-right corner of your page. Then click on "Apps" and find the application that you just added. Click on the "Edit Settings" and you'll get this popup dialog:
Tab: If it says "Available (add)", click "add" to add it to your navigation; if it says "Added (remove)", you're set;
Custom Tab Name: You can override the default tab name by entering a new name in this field, up to 32 characters, and then clicking "Save".
Click "Okay" to save your changes.
Troubleshooting
Based on feedback to this post, we are starting to compile some iFrame App Troubleshooting Tips. We will update this section as new questions some up.
Check your URLs!
Make sure that the URL you set for your iFrame is correct. Try accessing it directly, via your browser, instead of via your Page tab. Bad URL addresses are the most common problem. If the URL to the Web page or image you want in your iFrame Page tab is incorrect, obviously the tab won't work.
You can also test the validity of your URL by right-clicking the area where your iFramed content should be and then select "This Frame: Open Frame in new window" or something similar (each browser presents this option a little differently).
Make sure you have specified an HTTPS / Secure URL for your Page Tab application. If you don't, your tab won't load for people using Facebook with Secure Browsing activated.
If you can't add your Facebook Page Tab application to a Page
People often report this problem, and the cause will likely be one of the following:
You've already added the App to your Page: Click the "Edit page" button at the top-right of your Page; then click "Apps" in the left column of the admin area; look for your Page Tab app; click "Edit settings" and make sure that in the popup dialog it says "Added (remove" and NOT "Available (add)";
You're not an admin of the Page to which you want to add the App;
Under the App's "Settings > Advanced" area, you have set "Authentication > Sandbox Mode" to "enabled"; this restricts the ability to add the App to a Page to only the App's developers;
It's a Facebook bug/glitch: Yes, this could be the cause.
Error messages from your server (error 405 - HTTP verb or similar)
If your server returns an error when Facebook tries to load the HTML page into the iFrame, you may need to change the file extension from .html to .php or .aspx (depending on the server platform you are using). When Facebook loads the iFrame, they do a POST to the index page in order to pass some data to your application and it looks like some servers are set up to not allow a POST to a file with the .html extension. We will be taking a look at how to access the data that Facebook passes in the next tutorial, but I wanted to mention this now since it caused issues for some people.
API Error Code: 191 Popup Dialog
If you get the "API Error Code: 191" popup dialog error:
when using an embedded Share Button or other feature that requires the Facebook JavaScript SDK, it's may be because you haven't specified the "App on Facebook" URLs. See above for details.
We recommend adding some CSS (either inline as shown below or in your separate CSS file) to remove margin, padding, and border from elements by default. Many browsers add spacing around certain elements by default which can cause the scrollbars to appear unexpectedly.
<style type="text/css"> body { width:520px; margin:0; padding:0; border:0; } </style>
We would love to hear what you would like to see in this series -- If you would like to know how to do something specific using iFrame applications, just note it in the comments and we will see what we can do.
utorial: Add an iFrame Application to your Facebook Fan Page - Fall 2012 Tuesday, November 1st, 2011, 4:07 pm in Share 6 Updated Tutorial: Fall 2011 Facebook has been very busy updating how things are done, and one of the changes is how you create an iFrame application tab. Although the concept is p ...»See Ya
Elvis, Robert Goulet and a Shot-Out 25-Inch RCA Television
Travel Blog • Michael Yessis • 03.23.06 | 12:36 PM ET
I always thought the stories about Elvis Presley using his guns to shoot holes in televisions were apocryphal. I guess I was wrong. An exhibit featuring “the only surviving television or appliance that Elvis shot out” went on display at Graceland this week. “As the story goes,” the AP’s Woody Baird writes, “entertainer Robert Goulet was performing on TV when Presley blasted the 25-inch RCA that’s part of the exhibit called ‘Elvis After Dark.’”
“There was nothing Elvis had against Robert Goulet. They were friends,” Kern said. “But Elvis just shot out things on a random basis.”
There were no reports Presley hurt anybody with his gun slinging, but he was known to have a fascination with firearms. He converted part of a rear building at the estate into a firing range.
The display seems to be the brainchild of Robert F.X. Sillerman, the mogul who last year bought 85 percent of the company that runs Elvis Presley’s estate. According to a Forbes report, Sillerman and his company plan to spruce up Graceland, Elvis’s former Tennessee home, and double the amount of annual visitors. It currently attracts 1.2 million travelers a year.
Elvis, Robert Goulet and a Shot-Out 25-Inch RCA Television Travel Blog • Michael Yessis • 03.23.06 | 12:36 PM ET I always thought the stories about Elvis Presley using his guns to shoot holes in televisions were apocryphal. I guess I was wrong. An exhibit featuring “the only surviving televisio ...»See Ya
1 123video 123videonl alex amp amphetamine andthings animal animation art bad ban by campbell censored chilton china cocaine cocksucker code comment country cousteau crazy css cunt dance dan ...»See Ya
'I tried to commit its subtle evanescence to finger mnemonics.'
THIS IS jazz guitar genius Joe Pass's most difficult guitar scale instructional to 'teach' AND 'master'!
ONLY GUITAR AFICIONADOS--LYDIAN and Lynching--need bother comment this subtly masterful lesson in extempore! J. Pass's classes make it look easy!
...reflect on multi conceptual scalar ideas posited in insightful appraisal re. mixylodian vs. lydian's 40% personal taste 30% genetics; truer words never spoken about simmering lustiness blues scales difficult to do (immersed jazz-based microtones and avant-scales, abstain imposing passion order his sacred primitive musical form.
Thank you for reminding me that there is still someone out there--strong, pristine integrity as honor career jazz composer guitar.
love to hear you blast again.
last time possessed by your 3/4 harmonics scale solo during the 12-break of your Kessel tribute.
When I returned to Berkley divorced me as I tried to commit its subtle evanescence to finger mnemonics.
a true renaissance man
you have no idea.
* Wouldn't you, in fact, most naturally admit to having a "mixolydian" tonal mode (G - G), rather than a Lydian (F- F) mode, especially since the étude is later announced by the narrator. I find the blues scale much more fun to play, with sexier and more poetic possible chords. I just learned to play it, all of 12 or so years ago. *Jay Alan Davis Joe Pass Teaches AND HOW!
jazz purists need comment on this masterpiece! thank you!
Baby grandiloquent jazz! They try to teach you something relevant (if you're a member) http://post.ly/1YCdw Joe Pass Teaches AND HOW!
* forever indebted to brandonshred for producing this and three other masterpieces (that i know of) in the oeuvre.
Joe PassTeachesAND HOW!ONLY GUITAR AFICIONADOS WHO KNOW THE DIFFERENCE BETWEEN LYDIAN and Lynching need bother commenting on this subtly masterful lesson in extempore!!!!
Joe Pass Teaches AND HOW! Joe Pass finger mnemonics (jay alan davis via FB) by Gaejang Guk ( videos ) 2:10 http://post.ly/1YCdw Joe Pass Teaches AND HOW! ONLY GUITAR AFICIONADOS WHO KNOW THE DIFFERENCE BETWEEN LYDIAN and Lynching need bother commenting on this subtly masterful lesson in extempore!!! ...... Read MORE » on Dogmeat
View this post » Leave a comment » James Brown's Body Reportedly Missing, Funeral Director Speaks Out Posted by Limbs AndThings to Dogmeat Embedded media -- click here to see it. via youtube.com View this post » Leave a comment » Jerry Lee Lewis Killer Kristmas Kard '10 kurtesy Dogmeat Posted by Limbs AndThings to Dogmeat Embedded media -- click here to see it. via youtube.com Jerry Lee Lewis http://whatgetsmehot.posterous.com Dogmeat.FB Jerry Lee Lewis Killer Kristmas Kard kurtesy of Dogmeat Send it to your loved ones! View this post » Leave a comment » Facebook t-shirt animated gif of the day Posted by cyno phagie to cynophagie via enoratraffic.com View this post » Leave a comment » Serge Gainsbourg Proust Questionaire (Pivot) 14 Mins. Posted by Limbs AndThings to Dogmeat Embedded media -- click here to see it. via whatgetsmehot.posterous.com Serge Gainsbourg Proust Questionaire (Pivot) 14 Mins. (Posterous Video Embed Repost ) 11.9.10 AutoPost to yt:cynophagie + cy's FB View this post » Leave a comment » Severin 'HER INSATIABLE APPETITE FOR MEN AND SEX OF EVERY DESCRIPTION MATCHED THE FLAMING COLOR OF HER HAIR' + eBay Posted by Limbs AndThings to Dogmeat HER INSATIABLE APPETITE FOR MEN AND SEX OF EVERY DESCRIPTION MATCHED THE FLAMING COLOR OF HER HAIR Best of Severin films Sister of Ursula Download now or watch on posterous bertolucci_sister_of_ursula.mp4 (12840 KB) Brain Bludgeon Download now or watch on posterous BRAIN_BLUDGEON_E_mp4.mp4 (5096 KB) Fulci's Eroticist Download now or watch on posterous fulci_eroticist.mp4 (16508 KB) ...and eBay sleaze MAIL: GERMAINE GREER STRAIGHTENS UP OPENERS: FREDERIC CHOPIN APPEARS THROUGH A GLASS BARELY PREVUE: FOREIGN FILMS ON THE HORIZON REVUE: EXPLORING EARTH Damien Carter - Just Hangin' Download now or watch on posterous Damien_Carter_-_Just_Hangi.mp4 (30977 KB) ESSENTIAL URSULA: MISS ANDRESS IS UNDRESSED CAN WOMENS LIB SURVIVE FRANCE: YES TIMING THE SAVAGE BEAST: WHAT TO WEAR WHEN CONFRONTING A WILD ANIMAL BEST OF SEVERIN...and eBay MY SUMMER ABROAD: STAMPS FROM A VOYEURS ALBUM A CZAR RISES IN THE EAST: WHAT MAKES RUN RUN RUN DREAM OF MARTINE: A YOUNG LADY OF THE DAY HEADS TOWARD THE NIGHT CONVERSATIION WITH FRANCOIS CEVERT: SACKIE STEWARTS HEIR APPARENT TALKS ABOUT LIKFE AT THE EDGE OF DEATH HOW TO TIGHT DANCE: BODY LANGUAGE SET TO MUSIC SMUGGLING: UPDATING THE SECOND OLDEST PROFESSION HI FI SETS THAT MUSIC CRITICS USE: THIS MAY CONFIRM SUSPICIONS ASIA AFTER VIETNAM THE WORLDS LARGEST AIRPORT: ITS IN TEXAS OF COURSE BUT THATS JUST THE BEGINNING OF THE JOKE EROTIC CIRCUS: THE WORLDS GREATEST WITHT HTE MCCARHTY SISTERS PROFANE AND SUBLIME AND THE ONE AND ONLY JUICY LUCY FEEBERYS FORNICARIUM: HIS MIND WAS AN OPEN BOOK A DIRTY ONE WHY IS THIS GIRL FLASHING: THE HIDDEN SIGNIFICANCE OF INDECENT EXPOSURE EDEFINING HIP 24 HOURS IN SPEED GEAR ELEPHANT SCREW GUN PARTY SIMPLY VICKY CONVERSATION WITH PAUL MORRISSEY Download now or watch on posterous good_lookin_thig.mp4 (2266 KB) HE SPENT MORE TIME WITH HIS NURSES AND FEMALE PATIENTS THAN HE DID IN THE OPERATING ROOM SCHOOL FOR GIRLS OR MORALS OF THE LITTLE LADIES OF OUR TIME THE SOULF OF MARK FRECHETTE TEDDY BEARS PICNIC SHOULD SWITZERLAND BE PUT OUT OF BUSINESS Best Severin + eBay 'HER INSATIABLE APPETITE FOR MEN AND SEX OF EVERY DESCRIPTION MATCHED THE FLAMING COLOR OF HER HAIR' View this post » Leave a comment » Commons:Firefogg - Wikimedia Commons Posted by Limbs AndThings to Dogmeat Embedded media -- click here to see it. View this post » Leave a comment » The Seven Ages Of Rock, Part 2 - White Light, White Heat Posted by Limbs AndThings to Dogmeat Embedded media -- click here to see it. via video.google.com The Seven Ages Of Rock, Part 2 - White Light, White Heat 58:08 - 3 years ago The story of how artistic and conceptual expression permeated rock. From the pop-art multi-media experiments of Andy Warhol and the Velvet Underground to the sinister gentility of Peter Gabriel's Genesis, White Light, White Heat Place traces how rock became a vehicle for artistic ideas and theatrical performance. We follow Pink Floyd from the fated art school genius of Syd Barrett through the global success of Dark Side of the Moon to the ultimate rock theatre show, The Wall. Along the way, the film explores the retro-futurism of Roxy Music and the protean world of David Bowie View this post » Leave a comment » Michael's posterous - Same techcrunch dude's hot redhead girlfriend??? - Possum Posted Posted by Limbs AndThings to Dogmeat via techcrunch.posterous.com View this post » Leave a comment » Posterous: lots of fake post attempts, only three got through (i missed this social network pulitzer) Posted by Limbs AndThings to Dogmeat via techcrunch.posterous.com View this post » Leave a comment » Posterous_logo.png (PNG Image) Posted by Limbs AndThings to Dogmeat
via upload.wikimedia.org View this post » Leave a comment » linkto=posterous.com/wi *Random Possum Poster Found Arty Posterous...going to subscribe Posted by Limbs AndThings to Dogmeat via posterous.com via posterous.com via posterous.com via posterous.com via posterous.com/wi via posterous.com via posterous.com via posterous.com View this post » Leave a comment » media WikimonsCom Posted by Limbs AndThings to Dogmeat via commons.wikimedia.org View this post » Leave a comment » There are 5 more posts on your reading list. See your Posterous Subscriptions for all the latest » Posterous is the place to post everything. Just email us. New Results Our Favorite Band (OFB) - Saturday Nights.. - LP '87 F OUR FAVOURITE BAND saturday nights sunday mornings lp f Moostash Joe Polka Band Our Favorite Music Vol 4 NEW LP Our Favorite Band (OFB) - Saturday Nights.. - LP '87 F OUR FAVOURITE BAND saturday nights sunday mornings lp f Moostash Joe Polka Band Our Favorite Music Vol 4 NEW LP Buy It Now $16.69 Shipping: $11.13 End time: Nov-30-10 04:59:33 PST Buy It Now $8.04 Shipping: $12.09 End time: Nov-26-10 08:53:05 PST Buy It Now $9.98 Shipping: $4.00 End time: Nov-24-10 14:34:22 PST OUR FAVOURITE BAND 7'' E.P US POWERPOP 1981 OUR FAVORITE BAND Saturday Ni 1987 US LP SEALED OUR FAVORITE BAND Saturday Nights & Sunday Mornings LP OUR FAVOURITE BAND 7'' E.P US POWERPOP 1981 OUR FAVORITE BAND Saturday Ni 1987 US LP SEALED OUR FAVORITE BAND Saturday Nights & Sunday Mornings LP Buy It Now $19.32 Shipping: $5.24 End time: Dec-06-10 16:40:25 PST Buy It Now $9.98 Shipping: Not Specified End time: Nov-14-10 09:25:02 PST Buy It Now $19.98 Shipping: $4.00 End time: Nov-12-10 16:44:56 PST Sealed Our Favorite Band Saturday Nights LP OFB OFB Our Favorite Band Saturday Nights and Sunday..SS LP Our Favourite Band Saturday Nights Sunday Mornings LP N Sealed Our Favorite Band Saturday Nights LP OFB OFB Our Favorite Band Saturday Nights and Sunday..SS LP Our Favourite Band Saturday Nights Sunday Mornings LP N Buy It Now $5.00 Shipping: $4.00 End time: Dec-08-10 20:08:05 PST Buy It Now $11.99 Shipping: $0.00 End time: Nov-13-10 13:59:18 PST Buy It Now $16.12 Shipping: $9.67 End time: Nov-20-10 18:25:35 PST our favorite band pink cadillac 7" kbd power pop 1981 OUR FAVOURITE BAND pink cadillac 7" us praxis 1981 4 tr OUR FAVORITE BAND: Saturday Nights...sunday Mornin our favorite band pink cadillac 7" kbd power pop 1981 OUR FAVOURITE BAND pink cadillac 7" us praxis 1981 4 tr OUR FAVORITE BAND: Saturday Nights...sunday Mornin Buy It Now $25.00 Shipping: $3.50 End time: Nov-21-10 17:29:03 PST Buy It Now $9.65 Shipping: $4.51 End time: Dec-04-10 05:13:24 PST Buy It Now $10.00 Shipping: $4.00 End time: Nov-15-10 09:02:55 PST
* Required
Wed, Nov 10, 2010 at 8:03 AM, Subscriptions from Posterous wrote: Wed, Nov 10, 2010 at 8:03 AM, wrote: You can view the published form here: here If you'd like to change how often you receive these or unsubscribe completely, you can do so anytime by clicking here » Hi cyno You're subscribed to 3 ...»See Ya