While trying to loggin on the facebook app I’m developping, after calling:
echo "<script type='text/javascript'>top.location.href = '$loginUrl';</script>";
I’m being redirected to this page:
https://www.mywebpage.com/facebook/apps.facebook.com/myappname#_=_
witch is not a valid page, and I imagine the right page to be redirected should be:
apps.facebook.com/myappname
Does anyone knows how to solve this?
Thanks!
What about php redirect
or lots of similar ways to redirect straight?
Harry