Home > PHP > Build a Facebook application with Zend Framework

Build a Facebook application with Zend Framework

You can integrate your application with facebook in two way: with an IFRAME (using XFBML) or with FBML.

You can embed your content in a Facebook page through FBML or use an IFRAME

Facebook will be a proxy between your server and the user’s browser: it will load a page form your own server like a normal browser, parse it, “enhance” it with his components and then embed it in a Facebook page. You will use standard HTML tags plus FBML tags.

Pros:

  • You can use almost standard HTML, but with some other tags like: ,
  • Feature rich: with a simple tag integrate wall, comments, tabs, dashboard and many others components (Complete list of facebook tags)
  • The url in the browser follow the navigation
  • Faster when you need data from facebook database (groups, friends, etc.)

Cons:

  • Slower page load times: restart the facebook chat at every request
  • Can’t use standard JavaScript, only FBJS that’s almost equals but your existing scripts and libraries won’t work
  • Its losing ground: Facebook is trying to take IFRAME/XFBML on par


Link: Build a Facebook application with Zend Framework

Categories: PHP Tags: , , , , ,
  1. November 24th, 2009 at 08:32 | #1

    One thing i don’t like using FBML because facebook rewrite my CSS CODE with div id element.

    Facebook rewrite div id=”div-id-here” to div=”YOUR_FACEBOOK_APPLICATION_ID div-id-here” then the code not works with javascript code. if you’re using
    document.GetElementById(‘div-id-here’);

    you need to rewrite your javascript code to
    document.GetElementById(‘YOUR_FACEBOOK_APPLICATION_ID div-id-here’);

    Uhhhh … >_<

  1. No trackbacks yet.