在臉書中,重定向選項被禁用。所以你不能重定向到任何uri,除非它被用戶點擊。 重定向是自動的,點擊是手動的。
11. The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience and onto an external site.
2.You must not pre-fill any of the fields associated with the following products, unless the user manually generated the content earlier in the workflow: Stream stories (user_message parameter for Facebook.streamPublish and FB.Connect.streamPublish, and message parameter for stream.publish), Photos (caption), Videos (description), Notes (title and content), Links (comment), and Jabber/XMPP.
https://developers.facebook.com/policy/
谷歌不允許本身被包含在''
amazon.com? yahoo.com? anywebsite不爲此工作,我相信 – James
此外,嘗試'window.location'與'window.parent.location'。 –