• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1693
  • Last Modified:

Facebook Tab App iframe problem

Hello,

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
0
ChrisTERiS
Asked:
ChrisTERiS
1 Solution
 
StephanLead Software EngineerCommented:
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.
0
 
ChrisTERiSAuthor Commented:
It's a Forum application (https://www.facebook.com/pages/SBulletin/232865860169600?sk=app_499443973417641), 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.

Chris
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now