FaceBook UI using new PHP/JS API instead of FBML
I have most of it working, but I can not figure out some simple things - like in FBML to show a nice facebook styled message, I could just do:
<fb:success><fb:message><?php echo $fbmessage; ?></fb:message></fb:success>
<fb:error message="An error has occurred." />
There are no real guidelines for iFrame applications. Maybe it's worth consulting with a front end designer/developer to devise a visual framework for your application.
There are few things that you'll need to check to make sure your app will work as an iframe app instead of an FBML one:
- Make sure your app's page are complete and valid XHTML
- Make sure you have the xmlns:fb="http://www.facebook.com/2008/fbml" declaration on your root element
- Wrap any existing FBML content in the following markup:
<fb:serverFbml> <script type="text/fbml"> <!-- your original FBML markup here... --> </script> </fb:serverFbml>
- Lastly, if you aren't already, make sure your page calls FB.XFBML.parse() after calling FB.init().
Hopefully this gets you up and running.