Live Bookings

How to: Livebookings restaurant reservations tool on your Facebook Page using the Static FBML app (deprecated)

NOTE! Since this post was written Facebook has changed how Pages can be customised with added functionality. The application we used for this, the “Static FBML app”, is no longer available as Facebook has deprecated it. You now need to create what is called a “custom iframe app” (you got to love the user friendliness of this…) instead. You can find documentation about how to best do this here.

However, if you still have access to the “Static FBML app” (people who added it to their Page before Facebook deprecated it can still use it), these instructions are valid!

Lately we have been experimenting a lot with social media at Livebookings, and one of the projects we have completed is finding a way to embed our booking tool in a Facebook Page tab.

Studies have shown that a lot of people are reluctant to leave the cosy confines of Facebook, so if you are running a Facebook Page for your restaurant it makes sense to give your fans the opportunity to book your restaurant directly from your Page rather than send them to a page on your website.

Following these instructions you can add a tab to your Page in which the Livebookings tool shows up, just like it does on your website.

The main difference from how it behaves in your website is that due to extra security features in Facebook, a “preview image” has to be clicked to activate the booking tool. This is really an extra branding opportunity though as you can design your own image and use the space to emphasize your logotype, supply a message to the diner or even advertise upcoming events.

What you need before you start:

  • A Facebook Page. Duh.
  • Administrator rights to your Facebook Page…
  • Basic HTML knowledge.
  • No fear. ;)
  • A “preview image” with the dimensions 350 pixels high and 300 pixels wide (same as the Livebookings booking tool).
    • You can put whatever you like in this image, but it needs to make it clear that in order to see available tables and make a booking, it must be clicked. You need to upload this image to your website and get the full address to it (as if you would link to it).
  • Your Livebookings Connection Id (looks like DEV-RES-EATFOOD:3925, if you don’t have it, contact your Account Executive).
    • As a special treat, it is possible to set up a special “booking channel” for you to be used exclusively in Facebook. Not only does this give you separate tracking of bookings coming in from Facebook (these are highlighted specifically in your restaurant diary), you can then also target special offers to your Facebook Page and give your loyal fans special treats not available to the public on your website!
  • A special Facebook adapted embed code, called FBML code, to place the booking tool in the tab.
    • This is HTML-like code following a special format supplied by Facebook, and in order for our Flash based booking tool to work we have made some adaptations to it. You can not use the code you would embed in your normal website, it has to be this special FBML adapted code.

This is what the FBML code for embedding Livebookings’ booking tool looks like:

<fb:swf
imgsrc=http://www.YOUR_WEBSITE.co.uk/facebook/NAME_OF_PREVIEW_IMAGE.gif
flashvars=LBConnectionId=YOUR_CONNECTION_ID_HERE
width=300 height=350
swfsrc=https://secure.livebookings.com/LBDirect/fb-redirect.cfm></fb:swf>

NOTE! If you don’t want the booking tool to load in UK English, you will have to supply another string in the “flashvars” parameter. Due to the nature of FBML this parameter takes a URL encoded string of options, to make the booking tool load in Swedish you use:

  • flashvars=LBConnectionId=YOUR_CONNECTION_ID_HERE&LBLanguageCode=sv-SE

Using this same method you can also make the booking tool start with a selection of restaurants. So if you are a smallish group (up to 8 restaurants fit in the window) you can start the booking tool with a prompt to first choose restaurant, and then continue on with the booking through the normal calendar. To do that, you add in a number of Restaurant Network Ids (up to 8 of them) in the “flashvars” parameter, like so:

  • flashvars=LBConnectionId=YOUR_CONNECTION_ID_HERE&LBLanguageCode=sv-SE&LBRestaurantNetworkId=999999,888888

If you don’t know the Restaurant Network Ids of your restaurants, contact your Account Executive.

Step by step the process to embed Livebookings in your Facebook Page looks like this:

  1. Log on to Facebook and go to your Facebook Page.
  2. Click “Edit Page” in the left hand column to access the Administrator backend.
  3. You now need to add the “static FBML application”. Scroll down the page to where you see “More applications”. You should see an app called “Static FBML”. If you don’t, click “Browse more” and search for “FBML” and you should see it in the top of the search result.
  4. Click through to the FBML application and click “Add to my Page” in the left hand column. If you have more than one Page you need to choose which one to add the app to. Click “Add to Page” and then close the popup.
  5. Go back to the Administrator section for your Page. You now need to configure the FBML application.
  6. Locate the FBML application among your apps and click “Edit”. You will see a simple form with two fields: “Box Title” and “FBML”.
  7. In “Box Title”, enter the text you want on your tab. I would recommend “Reservations” as it is short, clear and unambiguous.
  8. In “FBML” you now need to add some code for what is to be displayed when people click through to the tab. This is where you need some HTML skill, as you must enter raw code into the form. You can basically add any HTML here, so you can design your tab with images, text, links to menus and so on. The very simplest implementation is to just drop the code for the booking tool in there, as displayed above, which would make the booking tool simply show up on a white background.
  9. Click “Save Changes”.
  10. Go back to the Administrator section for your Page. For the FBML app click “Application settings”. The FBML app can be added as a “Box” in your left hand column or as a “Tab” to display a tab along the top. The booking tool is to wide to be in a “Box”, so make sure that is removed, while the “Tab” is added. Then close the popup.
  11. Go to your Facebook Page to make sure your new tab is visible. Click the tab to see your booking tool in its full glory.
  12. Done! You can now take bookings via Facebook!

Livebookings booking tool in a Facebook Page

If you find it difficult to create the actual tab with the Static FBML application, here is another step by step blog post with a good explanation.

Since the tabs at the top of a Page are quite small and anonymous, you should now make it clear to your fans that the new tab exists. Post on your Wall to that effect, and to really make sure people notice, it may be a good idea to do some sort of little activity around it. Consider a freebie to the first 10 people to book via Facebook or something similar, or set up an offer available only to people on Facebook.

For a live example, search in Facebook for “Meza Bar & Grill Soho”, where you can book the restaurant directly.

There are other ways of adding the booking tool:

  • Develop a Facebook app of your own, which enables you to make your custom tab the default tab for your Page, and the first thing a visitor will see. This is a neat way of making sure your fans see you take bookings in Facebook, and also customise the graphics presented to them to conform more to your branding.
  • Use the Facebook CMS TabSite which allows you to create a really nice Facebook presence with multiple tabs and rich content without entering any code. They supply an editor with a “point and click” interface that allows you to design the contents of a custom tab in a graphical editor. To embed Flash movies like the Livebookings booking tool you need the Pro version though, so there is a cost involved. Recently I was in touch with the people at TabSite, helping a customer do just this, and they were incredibly helpful and quick in their responses so it seems like there is some value for money there.
    Update: The kind people from TabSite got in touch with me after publishing this post, saying that the function needed to publish a Flash movie (like our booking interface) using TabSite will be included in all price plans after a coming update. I also noticed that publishing the booking tool in this way seems to remove the need for a preview image, making the booking tool behave exactly as on your website.

This is a simple example, based on an individual restaurant.

Implementations can be seen on the Facebook Pages of Kettners in London, East West Sushi in Örebro and Fiddlers Irish Pub in Bonn.

If you are a restaurant group, running a single Facebook Page for more than one venue, you will need some additional code to build a way for a person to select which restaurant to book. For this you would use some dynamic FBML code, as explained at this excellent website with plenty of Facebook related code examples. That’s fodder for a more advanced tutorial though… For an example, check out the excellent Giraffe Facebook Page.

Please let me know how you get on, should you try this. Leave questions, comments and your experiences in the discussion section below. Good luck!

Related Posts Plugin for WordPress, Blogger...

Join Livebookings Here

  • http://twitter.com/lancasterpanews Lancaster News

    Nice post! Facebook TabSite is a great tool for the “non-techy” to be able to manage a Page and not need to learn FBML coding! I recommend it to you!

  • http://twitter.com/lancasterpanews Lancaster News

    Nice post! Facebook TabSite is a great tool for the “non-techy” to be able to manage a Page and not need to learn FBML coding! I recommend it to you!

  • Ki

    I’ve followed the instructions above but it doens’t seem to work. I’ve put in our connection id and uploaded the preview picture to our server. I’ve edited the FBML tab and posted the fmbl-code above, but when entering the facebook booking tab the page is all blank.

    Do you need to put any other code before entering the FMBL code for the booking tool?

  • Ki

    This is what i posted in the FMBL-tab:

    This is our ordinarye booking-page:
    http://www.eastwestsushi.com/bokning/

  • http://www.hultberg.org Manne

    Ki, thanks for getting in touch! It is the quotation marks that are at fault, change to single quotation marks around the parameters and it should work. I have changed the code in the blog post accordingly, thanks for finding this.

    I have emailed you some information to try out.

  • Ki

    I've followed the instructions above but it doens't seem to work. I've put in our connection id and uploaded the preview picture to our server. I've edited the FBML tab and posted the fmbl-code above, but when entering the facebook booking tab the page is all blank.

    Do you need to put any other code before entering the FMBL code for the booking tool?

  • Ki

    This is what i posted in the FMBL-tab:
    <fb:swf
    imgsrc=”http://www.eastwestsushi.com/facebook/bokning.gif” flashvars=”LBConnectionId=SE-RES-EASTWESTSUSHI_103863:13245” width=”300″ height=”350″ swfsrc=”https://secure.livebookings.com/LBDirect/fb-redirect.cfm”>
    </fb:swf>

    This is our ordinarye booking-page:
    http://www.eastwestsushi.com/bokning/

  • http://www.hultberg.org Manne

    Ki, thanks for getting in touch! I have emailed you some information to try out.

  • Helen

    I have just tried loading the following and nothing is working????

    <fb:swfimgsrc=”http://www.oakleyhall-park.com/facebook/booking.gif’”
    flashvars=LBConnectionId=UK-RES-OAKLEYHALL_110360:18518″width=”300″ height=”350″
    swfsrc=”https://secure.livebookings.com/LBDirect/fb-redirect.cfm”>;

  • http://www.hultberg.org Manne

    Hi Helen!

    The code you posted in the comment above contains several errors. Can’t say if those were inserted by the comment function. If you email magnus.hultberg@livebookings.net the code you are using I can help you troubleshoot it.

    // Manne

  • Helen

    I have just tried loading the following and nothing is working????

    <fb:swf<br>imgsrc=”http://www.oakleyhall-park.com/facebook/booking.gif'”

    flashvars=LBConnectionId=UK-RES-OAKLEYHALL_110360:18518″width=”300″ height=”350″

    swfsrc=”https://secure.livebookings.com/LBDirect/fb-redirect.cfm“>;;

    </fb:swf<br>

  • Steve_domer

    Does any body know what the value is for United States english?? i’ve tried EN, US…

  • Steve_domer

    i’m also confused by the multiple locations. when i add multiple network ID’s i get an error. I’ve made it work with a single restaurant though, works great!!

  • http://www.hultberg.org Manne

    Hi Helen!

    The code you posted in the comment above contains several errors. Can't say if those were inserted by the comment function. If you email magnus.hultberg@livebookings.net the code you are using I can help you troubleshoot it.

    // Manne

  • Steve_domer

    Does any body know what the value is for United States english?? i've tried EN, US…

  • Steve_domer

    i'm also confused by the multiple locations. when i add multiple network ID's i get an error. I've made it work with a single restaurant though, works great!!

  • http://www.hultberg.org Manne

    Hi Steve! Language codes are on the format en-US.

    How are you trying to add the multiple IDs? What does the erroring code look like?

  • http://www.hultberg.org Manne

    Hi Steve! Language codes are on the format en-US.

    How are you trying to add the multiple IDs? What does the erroring code look like?

  • Steve_domer

    Manne, thanks for that US english language code! this is awesome…

    this is that part in your post i guess i am having trouble figuring out:

    “Using this same method you can also make the booking tool start with a selection of restaurants. So if you are a smallish group (up to 8 restaurants fit in the window) you can start the booking tool with a prompt to first choose restaurant, and then continue on with the booking through the normal calendar. To do that, you add in a number of Restaurant Network Ids (up to in the “flashvars” parameter, like so:

    flashvars=LBConnectionId=YOUR_CONNECTION_ID_HERE&LBLanguageCode=sv-SE&LBRestaurantNetworkId=999999,888888″

    i have three restaurants, that i’d like to have as a prompt before connecting to the reservation server.

    is there a difference between the connection id and the network id??

    is it possible i have three connection id’s??

    thanks,

  • http://www.hultberg.org Manne

    The IDs and URL encoded parameter stuff is a bit confusing, I agree… You may very well have three different connection IDs, at Livebookings we set up a booking channel with a separate Connection ID for all restaurants we register.

    I will drop you an email to discuss further!

  • Steve_domer

    Manne, thanks for that US english language code! this is awesome…

    this is that part in your post i guess i am having trouble figuring out:

    “Using this same method you can also make the booking tool start with a selection of restaurants. So if you are a smallish group (up to 8 restaurants fit in the window) you can start the booking tool with a prompt to first choose restaurant, and then continue on with the booking through the normal calendar. To do that, you add in a number of Restaurant Network Ids (up to in the “flashvars” parameter, like so:

    flashvars=LBConnectionId=YOUR_CONNECTION_ID_HERE&LBLanguageCode=sv-SE&LBRestaurantNetworkId=999999,888888″

    i have three restaurants, that i'd like to have as a prompt before connecting to the reservation server.

    is there a difference between the connection id and the network id??

    is it possible i have three connection id's??

    thanks,

  • http://www.hultberg.org Manne

    The IDs and URL encoded parameter stuff is a bit confusing, I agree… You may very well have three different connection IDs, at Livebookings we set up a booking channel with a separate Connection ID for all restaurants we register.

    I will drop you an email to discuss further!

  • MFP

    Hi I implement the code but it not show the Live Booking, it shows Network error.

  • http://www.meforphp.com MFP

    I used the code

    Can anyone assist me please

  • MFP

    Hi I implement the code but it not show the Live Booking, it shows Network error.

  • http://www.meforphp.com MFP

    I used the code

    <fb:swf<br>imgsrc='http://SITENAME/images/logo.gif'
    flashvars=LBConnectionId='CONNECTIONID&LBLanguageCode=en-GB&LBRestaurantNetworkId=999999,888888'
    width=300 height=350
    swfsrc=” rel=”nofollow”>https://secure.livebookings.com/LBDirect/fb-redirect.cfm>;

    Can anyone assist me please</fb:swf<br>

  • http://www.hultberg.org Manne

    Hi MFP!

    You need to be a registered user of the Livebookings restaurant booking system, after which you get a valid Connection Id for the booking calendar. Please visit the Livebookings website to get in touch with one of our sales reps in your country: http://www.livebookings.net

  • http://www.hultberg.org Manne

    Hi MFP!

    You need to be a registered user of the Livebookings restaurant booking system, after which you get a valid Connection Id for the booking calendar. Please visit the Livebookings website to get in touch with one of our sales reps in your country: http://www.livebookings.net

  • http://www.meforphp.com MFP

    Hi

    Its valid connection ID only. The issue was ‘(quote)

  • http://www.meforphp.com MFP

    Working code is

    <fb:swfimgsrc=’http://SITENAME/images/logo.gif’
    flashvars=LBConnectionId=CONNECTIONID&LBLanguageCode=en-GB&LBRestaurantNetworkId=999999,888888
    width=300 height=350
    swfsrc=https://secure.livebookings.com/LBDirect/fb-redirect.cfm>;

  • http://www.meforphp.com MFP

    Is that possible to add color option?

  • http://www.meforphp.com MFP

    Hi

    Its valid connection ID only. The issue was '(quote)

  • http://www.meforphp.com MFP

    Working code is

    <fb:swf<br>imgsrc='http://SITENAME/images/logo.gif'
    flashvars=LBConnectionId=CONNECTIONID&LBLanguageCode=en-GB&LBRestaurantNetworkId=999999,888888
    width=300 height=350
    swfsrc=” rel=”nofollow”>https://secure.livebookings.com/LBDirect/fb-redirect.cfm>;;</fb:swf<br>

  • http://www.meforphp.com MFP

    Is that possible to add color option?

  • Elinleslie

    Hello, I am in the US, is there anyway you can email me the Facebook code? Can I send you a link to a photo and my Livebookings account info and you can generate the code for me? thanks….

  • http://www.hultberg.org Manne

    I’ll drop you an email Elinleslie.

  • Elinleslie

    Hello, I am in the US, is there anyway you can email me the Facebook code? Can I send you a link to a photo and my Livebookings account info and you can generate the code for me? thanks….

  • http://www.hultberg.org Manne

    I'll drop you an email Elinleslie.

  • http://blackboard.devbda.com/how-to-get-the-most-out-of-your-restaurant-facebook-page/ How to get the most out of your restaurant Facebook Page | theblackboard.net

    [...] about this before, so if you are able to use the “Static FBML app” as discussed above hop over to this page for instructions. Contact your Account Executive to get what is called a separate “Connection Id” so you [...]

  • http://blackboard.devbda.com/off-the-pass-week-of-january-3-2011/ Off the Pass: week of January 3, 2011 | theblackboard.net

    [...] on our Google Analytics stats, the most popular post last year were without a doubt how to add the Livebookings restaurant bookings widget to your Facebook Page. It gathered not only the most views, but also the most comments, emails to me directly and even [...]