How To Embed A Flickr Slideshow In A Tab On Your Facebook Page

by Peter Liu on September 14, 2009

Screenshot of Peter Liu Photography's Facebook page.

Ever since I created my Facebook page, I’ve been looking for a way to embed a Flash slideshow into it. Facebook doesn’t allow embeds, so I looked at a lot of different applications, and MagToo was the closest I could come to a decent solution.

The thing is, I use my Flickr account as a kind of hub to display my work, so the ideal thing would be if I could find a way to use their embed code in Facebook.

I was browsing some Facebook pages and came across one with Flickr slideshows embedded in a tab, and decided I had to know how it was done. From past experience, I knew it had to be Flickr’s embed code wrapped somehow inside FBML (Facebook Markup Language). I looked around and managed to find a good forum thread started by the page owner, and a succinct introduction to FBML. Learning FBML has always been on my list anyway, so I dug in.

Here’s how I made it work:

1. Go to “Edit Page” in your Facebook page.

2. Go down to “More Applications”, mouse over to the little “pencil” symbol on the right and select “Browse More”.

3. Search for “Static FBML”.

4. After selecting the application from the search results, click on “Add to my Page”.

5. When the selection window comes up, choose the page it should be added to.

6. Go back to your page and “Edit Page” again.

7. Look for the FBML application, mouse over to the right and select “Edit”.

8. Here’s where it gets tricky. You need to convert the Flickr embed code for your slideshow into FBML. This was the original code for my slideshow from Flickr:

<object width="700" height="525"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2Fshow%2F&page_show_back_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2F&set_id=72157605677028199&jump_to="></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2Fshow%2F&page_show_back_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2F&set_id=72157605677028199&jump_to=" width="700" height="525"></embed></object>

And here is the same code in FBML:

<fb:swf
swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;"
swfsrc='"http://www.flickr.com/apps/slideshow/show.swf?v=71649'
flashvars='offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2Fshow%2F&page_show_back_url=%2Fphotos%2Fpeterliuphoto%2Fsets%2F72157605677028199%2F&set_id=72157605677028199&jump_to='
imgsrc="
http://[location-and-name-of-your-image]"
width='700px'
height='525px'
waitforclick='true'
/>

Feel free to copy and paste this code. Simply replace the location of my slideshow with the one Flickr gives you for yours (“page_show_url”), and update the width and height parameters accordingly.

9. One last thing: as you can see, this code includes an “imgsrc” parameter near the bottom. This is because of a quirk in the platform where the slideshow object appears blank, and you have to put a “cover” image where the object is. It’s awkward, because your viewers will have to click on the image, then click again on the slideshow to start it, but it’s unavoidable right now. Let’s hope they improve the platform going forward. I simply created an image in Photoshop with the same dimensions as my slideshow and uploaded it.

10. Fill in the “Box Title” with the label of your new tab, then press the “Save Changes” button on the bottom.

11. Go back into “Edit Page”, mouse over to the right of your newly created FBML and select “Application Settings”. You will see a choice to make your new application available as a tab on your page.

12. Go back to your page, and you should see a new tab labeled with the name of your application. Sit back and enjoy your new slideshow.

As a live example, here’s the one I created on my page.

{ 2 trackbacks }

Tweets that mention How To Embed A Flickr Slideshow In A Tab On Your Facebook Page -- Topsy.com
September 14, 2009 at 14:38
How To Embed A Flickr Slideshow In A Tab On Your Facebook Page – The Facebook News
September 14, 2009 at 15:50

{ 39 comments… read them below or add one }

Kathy September 14, 2009 at 18:39

Great info… I’m sure I’ll use it sometime.

Reply

Peter September 15, 2009 at 11:23

Thanks to Matt Suess – http://www.Dramatic-Landscape.com – for pointing out that the above code was mistranslated when I pasted it here. All fixed now.

Reply

Chelsea September 30, 2009 at 10:34

Thank you very much for the great instructions on how to embed a flickr slideshow in your Facebook page! Unfortunately, I can’t seem to get mine to show up on our page. This is the code I am using (trying to follow your steps exactly . . .)

Does anyone see anything that might be wrong and causing me the problem? Anything is greatly appreciated!

Reply

Chelsea September 30, 2009 at 15:03

Thank you so much for the help with my Facebook page and inserting a slideshow from our Flickr account. I really appreciated the informative, speedy, responses that I received. I am a newbie to HTML codes and this information was great and exactly what our page needed. Thanks again!

Reply

Peter September 30, 2009 at 16:59

You’re very welcome, Chelsea! Glad it worked out! The slideshow looks great. Let me know if I can help further.

Reply

Pinaki November 12, 2009 at 20:00

Hi Peter,

Thanks for the wonderful translation of the Swf embed code to FBML however i cant see the options in the flash how to enable that ?

Please let me know.

Regards.

Reply

Peter November 13, 2009 at 10:23

Hi there! After you add the “Static FBML” application to your Facebook page (fan page, not personal profile), and then add the above code to it, a new tab appears. Hope this helps…

Reply

slidell January 25, 2010 at 20:09

Great tutorial one problem flickr is not safe the spaceball gif file is not strong enough to protect photos. I have a pro account and I know my full resolution photos will be spread all over the internet.

Reply

Peter January 26, 2010 at 12:41

Thanks! And true enough about Flickr. Took me a while, but I reached a philosophical decision that if that happens, it’s free advertising for me, and if I’m successful at building an online following around my work, people will know those photos are mine. I may be delusional, but it’s hard enough to get your work seen, as you know, and a venue Flickr is too good to pass up.

Reply

Rhys Gerholdt February 16, 2010 at 08:45

This is really helpful, thank you Peter!

However, I’d like to embed a slideshow generated from a search term, and so the format is different. Any ideas on how to manipulate it to work? I haven’t figured it out yet. Thanks!

Reply

Peter February 16, 2010 at 09:33

Thanks! Something like that would require a service with that function, and Flickr is obviously not it. PhotoShelter gives you a search box you can embed, but it brings you to a gallery, not a slideshow, and there’s no real way to embed that. And then there’s the actual venue—there’s only so much FBML can do. Where were you thinking this search-generated embedded slideshow would be displayed?

Reply

Rhys Gerholdt February 16, 2010 at 10:05

Flickr does offer the option to get a link and get embed code from a gallery that is produced based off of search criteria. Below is code I pulled moments ago, and is what I’d like to embed with in a box on the Box page or as its own Tab:

The Link:
http://www.flickr.com/search/show/?q=cop15+climate

The Code:

Reply

Peter February 16, 2010 at 12:20

Hi Rhys,

Sorry, I misunderstood what you were trying to do and made the problem more complicated than it really was. I thought you wanted a way to search on the fly from FB and have the results come back in a slideshow.

You can use the same FBML code to do this as I had above. The code you substitute in the “page_show_url” parameter is different, but the rest of it is the same:


<fb:swf
swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;"
swfsrc='"http://www.flickr.com/apps/slideshow/show.swf?v=71649'
flashvars='offsite=true&lang=en-us&page_show_url=%2Fsearch%2Fshow%2F%3Fq%3Dcop15%2Bclimate%26ss%3D2&page_show_back_url=%2Fsearch%2F%3Fq%3Dcop15%2Bclimate%26ss%3D2&method=flickr.photos.search&api_params_str=&api_text=cop15+climate&api_tag_mode=bool&api_safe_search=3&api_content_type=7&api_media=all&api_sort=relevance&jump_to=&start_index=0'
imgsrc="http://farm3.static.flickr.com/2611/4165399407_d329334d10.jpg"
width='400px'
height='300px'
waitforclick='true'
/>

I have a running version up on a “sandbox” FB page I keep around for testing stuff like this: http://www.facebook.com/pages/Peter-Lius-Sandbox/148682917989?v=app_4949752878 – will keep it there for a little while.

Let me know if I can help further.

Reply

MrCams February 23, 2010 at 07:39

thnx so much for this code I spent forever trying to find out how to embed a flickr slideshow into the page I’m building. Thank you for sharing your knowledge with the rest of the internet community! You have helped make the interwebs a better place.

Reply

Martin Koss February 23, 2010 at 08:07

Hi Peter. This looks like a great tutorial but I am puzzled that you invite people to ‘copy and paste’ the code but for some strange reason it is impossible to “select” anything on this page without selecting all.

Cheers. Martin

Reply

Peter February 23, 2010 at 09:25

Thanks for letting me know. That wasn’t always the case. I recently installed a plugin that disabled right-click on the photos posted here, and I’m betting that disabled highlighting as well. I’ll see what I can do. Thanks again.

Reply

Peter February 23, 2010 at 09:35

Fixed… you can now highlight and copy/paste using keyboard shortcuts. Right-clicking is still disabled, but you should now be able to grab the code.

Reply

Martin Koss February 23, 2010 at 20:10

Yep – selecting text is now working.
Thanks Peter. I’m now going to give it a shot.
I’ve been trying all day yesterday to get flickr collections in my Fan Pages so hopefully I can work out how to do it using your example.

I’ll let you know how I get on.

Martin
Martin Koss´s last blog ..Make Time Now or Play Catch Up Later My ComLuv Profile

Reply

Martin Koss February 23, 2010 at 20:33

Peter – thank you.
I just added it to one of my ‘sandbox’ Fan Pages and it works a charm.
A couple of questions you may know the answer to:

What is the ‘version’ all about? (show.swf?v=71649′).
Does it change?

And, is it possible to start it ‘paused’ so that the user can either click on ‘next’ / ‘prev’ or ‘play’?

Thanks again.
Martin
Martin Koss´s last blog ..Make Time Now or Play Catch Up Later My ComLuv Profile

Reply

Peter February 24, 2010 at 08:39

Hi Martin,

I’m glad it worked! Yay!

I don’t know if the version has an effect. I suspect it’s reference within Flash, but I don’t know what it’s about.

I’ve been experimenting with having it start in different ways without success. I suspect it’s a limitation in FBML. I revisit it and play once in a while. I’ll let you know if I come up with anything.

Reply

Martin Koss February 25, 2010 at 02:40

Hi Peter
Here’s what I managed to do by experimenting with your code examples; http://www.facebook.com/StarflyDJ?v=app_7146470109

I love it. There are very few ways of getting photos into a Facebook Fan Page (I’ve treid all of the apps that claim to do it and have a very sore head) and this is the perfect solution.

Can I contribute a little additional tip here; As you can see from the slide-show I’ve linked to, I wanted to take photos and upload them immediately via my mobile phone and for the photo to end up in a specific set or with a specific tag on Flickr so that it would automatically join the slide-show…

PixelPipe – a great app for mobile phones that enables the cross posting of any media to preset groups of platforms. I send via my phone to PixelPipe, it then send the photo to my Flickr, Picasa, Blog etc., and Posterous (which dumps a thumbnail in my Fan Page wall) and more.

The great thing is – I end up with the photo wherever I want it. And the fantastic part is, thanks to you, I now have a ‘live’ slideshow which pulls in all the photos with a specific tag or from a specific set.

Thanks again.
PS: Thank you for your comment on my website/blog.
Martin Koss´s last blog ..Prepare For & Commit To The Long-Haul My ComLuv Profile

Reply

Peter February 25, 2010 at 09:56

Thanks, Martin! Great tip! I appreciate your participation in the conversation here.

Reply

mark hadden March 19, 2010 at 10:13

Hey

I tried this today and cant get it to work on firefox at all. The slideshow works in IE and Safari but not firefox. I also cant get the first image, which is based on my fliuckr page, to display in any browser. Any ideas?
here is the link: any help appreciated.
http://www.facebook.com/pages/Mark-Hadden-Photography/293595711387?v=app_4949752878&ref=ts

mark

Reply

Peter Liu March 19, 2010 at 10:18

I’ve seen Firefox have issues when the initial “placeholder” image cannot be displayed (not found or something). Other browsers show a frame with a “broken image” icon that you can click on, which starts the show, but Firefox doesn’t. Make sure the link to the initial still photo displays and you should be okay. Let me know…

Reply

mark hadden March 19, 2010 at 10:38

Thanks. You pointed me in the right direction.. I realised i hadnt put the actual url of the placeholder image, just the link to the flickr page. Now thats sorted and it shows up in all browsers but the slideshow still doesnt work in firefox. You think this might be a firefox or a fbml thing? I guess it might get fixed eventually.

thanks
mark

Reply

Peter Liu March 19, 2010 at 10:42

I got it to work in Firefox. It takes a while to show up after you click on the initial image, but it works. Perhaps try clearing all histories and caches, and see if that helps? Firefox can be temperamental sometimes. Let me know.

Reply

mark hadden March 19, 2010 at 11:06

thanks peter. clearing the cache worked.

all the best.
mark

Reply

Alex March 21, 2010 at 13:22

Thanks so much for this “tutorial”, Peter, it’s really helped me out. When I’ve finished my Facebook page I’ll post a link here!

Reply

Peter Liu March 21, 2010 at 13:35

Thanks for visiting! I’m glad I was able to help. Looking forward to seeing your show!

Reply

Benjamin March 29, 2010 at 02:48

Hi peter – Thanks for this. I found you online but thought it might be too complicated to achieve what you’ve done so then asked the question of the LOVE UK homepage on facebook how they did their slideshow and they directed me back to you so its obvious you are helping a lot of folks out with this! Unfortunately I don’t really know what I’m doing :( I have tried to follow your instructions but I can’t get further than the early steps. Where is “EDIT PAGE” on facebook these days? With the changes introduced a couple of months ago it no longer seems to exist! I found static FBML and added the tab to my fan page but there are literally no options for editing on there that I can find. When I click on the edit icon it gives me “tab options” or “delete tab” and there are in fact no “tab options” coming up as options in a menu list. I also don’t know whether I am supposed to be copying and pasting the HTML from Flickr or the FBML that you have posted or both? Sorry to be so confused. I am sure this can work but I’d love your help if you could guide me …. ?

Reply

Peter Liu March 29, 2010 at 08:43

Hi Benjamin, no worries! “Edit Page” is right below the avatar in your page. When you get in there, you’ll find FBML as one of the apps.

Reply

Benjamin March 30, 2010 at 03:02

Thanks Peter – I finally found that. Was being a klutz and tried to locate “edit page” under my personal profile rather than the fan page. Still, the question about what’s code that I need to copy is out there; do I copy HTML, then convert to FBML or both? I see that “page_show_url” is in HTML but not FBML. Any help much appreciated! Benjamin
Benjamin´s last blog ..An apology My ComLuv Profile

Reply

Benjamin March 30, 2010 at 03:46

OK – Peter – I admit I’ve been rather silly over this and have finally managed to do it;

http://www.facebook.com/pages/Benjamin-Arthur-Photography/111883752161235?v=app_4949752878

and THESE are the results … the ONLY thing I still haven’t quite figured out to fix is to your POINT 9 above… when you say “I simply created an image in Photoshop with the same dimensions as my slideshow and uploaded it.” do you mean you uploaded it direct to facebook or uploaded it to flickr?

thanks for your ongoing assistance !

regards,

Benjamin
Benjamin´s last blog ..An apology My ComLuv Profile

Reply

Peter Liu March 30, 2010 at 07:25

Grab the FBML code and plug in the “page_show_url” from Flickr. Then make sure “imgsrc” points to something that actually exists, or you won’t see anything.

Hope this helps!

Reply

Benjamin March 30, 2010 at 09:22

many thanks Peter… i see how it can work now.. .that should do the trick. Either way I am THRILLED with having this now embedded on my page before it all gets launched so very many thanks for figuring out for us how it works, then sharing it then for all your extremely efficient, prompt feedback!
Benjamin´s last blog ..An apology My ComLuv Profile

Kris June 18, 2010 at 22:29

Looks like a popular thing to do, just added a slideshow to one of my pages, too.

Mine is pulling from a group pool on Flickr, so I wanted to make sure that the user attribution in the slideshow player was visible. Spent about 3 minutes trying to see where the query string parameters were for the flickr url before I finally discovered it’s the width of the slideshow that will control whether there’s room in the player to show the additional options like display info.

After a little testing, it looks like it requires about 700px, which is just about as much space as FB currently gives you on a tab for a profile page.
Kris´s last blog ..Website Banner PhotosMy ComLuv Profile

Reply

Sherrie Slopianka June 19, 2010 at 15:43

Mine works great! Best instructions out there.

One question, how do you set this up so that when someone clicks on the screen, the slideshow does not appear in flickr. I’d like the viewing to be static within my Fan Page.

Reply

Peter Liu June 19, 2010 at 16:31

I don’t understand the question? Clicking on the slideshow shouldn’t cause it to open in a Flickr window. It should play right there in Facebook.

Reply

Sherrie Slopianka June 19, 2010 at 17:36

If the size is 400px x 300px and you click on the center of the image, it takes you to flickr. When the image size is above those dimensions, and you click on the center of the image, you do not get linked to flickr.

No need to respond back.

Thank you again!

Reply

Leave a Comment

CommentLuv Enabled

Previous post:

Next post: