Facebook Reveal Tab Tutorial

Since Facebook has deprecated XFBML, there are several features that are not working with the old FBML code. There is one very common feature/technique used among Fan Pages that is Reveal Tab. In this technique you show different screen to Non-Fans and different screen to Fans. In the FBML days you could have done with few lines of FBML code, but now that is not the case.

In this video tutorial I’ll teach you to develop a complete Reveal Fan page Tab. You will learn:

  • How to setup Facebook Application
  • How to call Facebook PHP SDK in your pages
  • How to get Facebook Signed Request
  • How to utilize Signed Request data
  • How to deal with unnecessary scroll bar

Source Code & Demo

Download Source Code See Demo

Videos

Last Words

Facebook API changes very rapidly. If you want a tutorial on some specific issue that is happening due to change in API please let me know.

Your questions and comments are welcome. If you like this article, please share it on your favorite website. It may help someone somewhere!

written by +

I believe we learn everyday a new thing and add another experience in our life. Same apply for me…so I share my experiences in the field of web development and design with the hope it will be useful for someone.
Related Posts

27 Responses to "Facebook Reveal Tab Tutorial"

  1. Shahzaib says:

    wow keep up the good work dude! love ur voice :P

  2. Billy says:

    What IDE are you using in these tutorials?

  3. Fraz Ahmed says:

    I used Dreamweaver CS 5.

  4. Falls' says:

    Thanks a lot dude ;-) shared.

  5. Daniel says:

    Great tutorial! I have been looking for one this good for a long time.
    How could we use html files instead of images in the reveal tab?

  6. Fraz Ahmed says:

    Thanks!

    You can use any HTML tag in place of tag. If you already have your HTML files developed, you can copy and paste the code in tab.php file.

  7. Moon says:

    Great stuff, you helepd me out so much!

  8. Techmug Tutorials says:

    [...] http://www.techmug.com/facebook-reveal-tab-tutorial/ Create fan page. Put like request make tabs for promotions, Facebook fan page tutorials for free.. [...]

  9. Ricardo Lopes says:

    Here is a very good example of Facebook Mashup with fans-only iFrames Page Tab Reveal.

  10. Pierre says:

    hi
    i dont know why , have copy the source file on my ftp for my appli, put my id and secret , but i dont work ? did fb change something or ?

    ++

    http://apps.facebook.com/home-test-sony/

  11. iman says:

    good day sir : ) maybe i’m too late .. i was able to watch video no 1 till the end. however, when i tried to watch the second, it stalled less than 20 seconds from the beginning. i tried refreshing my page several times and even bookmarked the page and close the browser and tried it again but the problem still exist. i did this for three days thinking that it must have been my connection but it was stalling.
    i also tried watching videos 3 and 4 but they also share the same problem. i tried clicking on your name and it brought me to a new site (screenr.com) with the videos in it but its the same problem.
    could you kindly repair the videos so i can learn from it too?

  12. Fraz Ahmed says:

    Videos are played nicely here and for other people. You might give them a try on some other connection.

  13. Fraz Ahmed says:

    Please provide some more details. What error you see? or what actually going wrong?

  14. free iphone 5 says:

    Do you have a Facebook page or Twitter? Would love to follow you there, I’m on my iPhone and love reading your stuff!

  15. Facebook Reveal Tab Tutorial | Techmug | Web Development & Solution Tutorials says:

    [...] Ream More Follow On Techmug Posted in: API, Facebook, Featured, PHP, Social Media, Tutorials   Tags: Facebook, Facebook Reveal Tab, Featured, Graph API, PHP, Reveal, Tab, Tutorial [...]

  16. Osho @ Latest Tips And Tricks says:

    Downloaded Source Code And Going To Read It :)
    Osho @ Latest Tips And Tricks recently posted..Recently Added CommentLuv Plugin To Blog (DoFollow)My Profile

  17. 15 Super Cool Facebook Fan Pages | Tech Mug says:

    [...] Create facebook fan page [...]

  18. Erka says:

    This was very helpful, thanks!

  19. Usman Malik says:

    woww dude Thank you very much for sharing your info with us love you :*
    Usman Malik recently posted..See My New Trick =D Fan Page Has No NameMy Profile

  20. @nilerbarcelos says:

    Great tutorial! Thanks!

  21. Ali Ahmed says:

    Thanks for your comment :)

  22. advertising facebook says:

    Thanks a lot for sharing this with all people you really know what you are speaking approximately! Bookmarked. Kindly additionally visit my web site =). We will have a link alternate contract among us
    advertising facebook recently posted..1My Profile

  23. sunny says:

    Hello,

    first thanks for sharing :)

    this is maybe the tenth tutorial for reveal-tab I use, I’m pretty sure that I did it well… and ever ever I got a blank page.

    - the FB app is ok. If i use a basic index.php it works well on my fan page, but If i use the $data = $facebook->getSignedRequest(); then i got nothing… the frame source in FB is tab.php but empty.

    - My server is PHP 5.1.6

    - all the files are hosted, I even tried with the last facebook php sdk (25jan)

    after-like.jpg
    before-like.jpg
    facebook/fb/
    /fb_ca_chain_bundle.crt>
    /facebook.php>
    /base_facebook.php>

    tab.php

    It’s been 2 days and I become crazy, is there a bug or something that has changed???
    thanks for helping me!

  24. sunny says:

    updating…

    I tried on local and it works… it seems i don’t have Json ext. on my server…

  25. Suroor says:

    I have recently started with Facebook app development and this was quite a help even though alot has changed. They are now providing heroku to host your applications free and having a facebook app associated with your website or blog does wonders.
    Suroor recently posted..HTC Desire X officially announced at IFAMy Profile

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge
© Copyright - Tech Mug