Facebook Tab App iframe problem

Posted on 2012-08-27
Last Modified: 2012-09-01

I'm coding a Facebook Tab App. So far it works, even if I hate to work with iframes. The problem is that when (in any section of my application) I'm hitting reload in browser, it loads the application's main page. I think that its normal as the browser loads the parent page. Is there any way to fix it? eg (best solution) to reload the iframe content, or at least a solution to turn of the reload button. I know that its nearly impossible as reloading is possible with right click and keypress combination too.

Thank you
Question by:ChrisTERiS
    LVL 16

    Accepted Solution

    Im afraid its not possible in a easy way. Facebook uses the app info into the iframe. You could place a cookie/session in order to know which page was last visited. Also reloading inside your own app without reloading facebook, You loose the signed_request that facebook gives you, be aware of this.

    Author Comment

    It's a Forum application (, so in every page I'm including a global file which has the signed request.

    Session/Cookie: Thought of it, but as I've removed them from my original PHP script, I didn't tried to add it again.

    Finally I used a "fake" solution. I changed the title of each page (navigation menu) to be link to the same page. Maybe some users will see and use it.


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
    The viewer will learn how to count occurrences of each item in an array.
    Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now