Scott Hunter
Scott Hunter

Reputation: 415

app doesnt stay within facebook on firefox and chrome

I'm creating a facebook app and on Internet Explorer 9 it works fine. But on Firefox and Chrome when I goto the canvas page it redirects away from facebook and to my site.

Think it's something to do with how I'm redirecting people from index.php to home.php

Is there anything in this that would cause the problem :

echo("<script> top.location.href='home.php'</script>");

Upvotes: 1

Views: 139

Answers (2)

Abby
Abby

Reputation: 3209

Try:

echo("<script> top.location.href='http://apps.facebook.com/myapp/home.php'</script>");

or:

echo("<script>location.href='home.php'</script>");

Upvotes: 1

Tippu
Tippu

Reputation: 1261

What is the Bookmark URL you have in application settings? It should be http://apps.facebook.com/appname. I had the same issue when I mistakenly had the canvas URL in the bookmark url field.

Upvotes: 1

Related Questions