Ian Hoar — Passion for Technology – Geeking Out

FacebookI recently started developing an application on Facebook. It’s actually quite interesting although the Facebook developer interface leaves a lot to be desired. If a chat program operated the way Facebook does it would go something like this. To add a user you must first add the addUser application. Once this is completed you can add the first use through the addUser applications, but after that you must go to the first added user to add an additional user, it’s really a… but I digress. This post is about Facebook’s application canvas and specifically developing applications with the iframe option enabled.

In Internet Explorer (of course) you will lose the Facebook interface whenever a user clicks a link or submits a form. This drove me crazy, because an iframe was the only way for me to access the database on the server I was using. The solution was remarkably easy. It’s a header you can add to the top of your app.

"p3p", "CP=\"CAO PSA OUR\""

In PHP it looks like this.

header("p3p: CP=\"CAO PSA OUR\"");

More information can be found on the Facebook Developer forums.

Leave a reply

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


About

Ian HoarWelcome to the blog of Ian Hoar. I talk about current web trends, technology, toys, games, gadgets, design, usability and everything in between. It’s all about geeking out and an occasional rant. More about me

Get Social!
Most Recent tweets — Follow me on Twitter
Categories