javascript - FB app requests redirecting to canvas page instead of tab page -


when users send app requests, requests point canvas page instead of page tab.

i know solution point canvas app url page redirects page tab. however, it's not working.

this js on redirect page:

top.location.replace("#{page_tab_url}"); 

going redirect page directly (myapp.com/redirect) redirect page tab fine. reason, requests don't work. when users click view request, app returns 404.

is there problem top.location.replace within facebook?

the following question's solution did not work me: fb app request points canvas page instead of page tab

the problem in routes file (it's rails app), geting /redirect, , wasn't handling post, happens in page tab. working solution:

on redirect page:

`window.top.location.href = "#{page_tab_url}";` 

routes.rb:

`match "redirect" => "home#redirect"` 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -