[英]Facebook URL - Angularjs how to get current url
If you are using a page tab on facebook, you can connect other websites inside the iframe. 如果您在Facebook上使用页面标签,则可以在iframe中连接其他网站。 I want to get the url of facebook within the facebook page.
我想在facebook页面中获取facebook的URL。 when I am trying to get window.location.url, it shows my website url, how to do it in facebook page to get facebook url
当我尝试获取window.location.url时,它显示了我的网站url,如何在facebook页面中执行操作以获取facebook url
You can't. 你不能 Your Facebook application exists within an iframe, which cannot access the parent window on facebook.com due to same-origin restrictions in all major browsers.
您的Facebook应用程序存在于iframe中,由于所有主要浏览器中的同源性限制,该iframe无法访问facebook.com上的父窗口。 It is effectively sandboxed.
它是有效的沙盒。
However, the Facebook signed request will include the ID of the Facebook Page your tab is being accessed on. 但是,Facebook 签名的请求将包含正在访问您的选项卡的Facebook页面的ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.