简体   繁体   English

单击取消按钮时无法关闭 facebook 邀请弹出窗口

[英]Cannot close facebook invite popup when click cancel button

I have created facebook application and it also have invite friends functionality.我创建了 facebook 应用程序,它也有邀请朋友的功能。 I ve created inivite popup of facebook. This reffered from following link我已经创建了 facebook 的邀请弹出窗口。这来自以下链接

http://developers.facebook.com/docs/reference/dialogs/requests/ http://developers.facebook.com/docs/reference/dialogs/requests/

My problem is when I click the cancel button popup page redirect to another url .我的问题是当我单击取消按钮弹出页面重定向到另一个 url 时 So I cant remove popup from page.所以我无法从页面中删除弹出窗口。 How can remove this popup directly when click in cancel button without redirect to another url.如何在单击取消按钮时直接删除此弹出窗口而不重定向到另一个 url。在此处输入图像描述 Thanks.谢谢。
Rejo雷乔

(sorry for my english). (对不起我的英语不好)。

<!doctype html>
<html>
<body>
  <h3>Thank you!</h3>
  <a href="javascript:close();">Close this window</a>
  <script type="text/javascript">
    close();
  </script>
  </body>
</html>

You are facing this problem because Facebook automatically redirects you to your application's URL.您遇到此问题是因为 Facebook 会自动将您重定向到应用程序的 URL。

Please create a separate HTML page and copy/paste the above code, and supply the Facebook redirect URL with this: http://www.abcde.com/example.php请创建一个单独的 HTML 页面并复制/粘贴以上代码,并提供 Facebook 重定向 URL 与此: http://www.abcde.com/example.php

The popup window will be closed.弹出窗口 window 将被关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM