Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Facebook actually passes the path from the canvas url to your iframe. So what I do is make all the targets "_top" and point to my canvas url. No need for complicated JS stuff. :D

So a link in my iframe app would be something like this: <a href="https://apps.facebook.com/defensio/archives/index target="_top">Deleted</a>

This will create an iframe with https://facebook.defensio.net/archives/index



Thanks Jason. That's actually my fallback idea, but isn't that very slow for the user since it reloads the Facebook container every time?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: