Facebook Login and Iframe redirection

后端 未结 5 1228
情书的邮戳
情书的邮戳 2020-12-06 23:52

I am building an Facebook IFrame App. I am using the below javascript code to request user to login and allow permissions for the application, after which they are supposed

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 00:41

    Note on redirecting within a frame to the Facebook login page. You have to use javascript to redirect the entire page since the login page passed the X-Frame-Options:DENY header and modern browsers will prevent you from sending the user to the URL if that header is present. Solution is to use javascript::window.top.location = ''; to redirect the whole page

提交回复
热议问题