AS3 图形 API ->弹出窗口被阻止

发布于 2024-12-27 07:40:00 字数 359 浏览 2 评论 0原文

我们开发了一个as3 facebook应用程序(http://www.encuentraugemelo.cl),但不幸的是,验证弹出窗口在所有主要浏览器(即ff、chrome)中被阻止,这导致我们的活动拒绝率很高。 如果我看这里... http://www.newxv.cl/setomatumuro/ 这些家伙使用相同的 api (http://code.google.com/p/facebook-actionscript-api/),我用反编译器检查了它,他们的弹出窗口从未被阻止! 有人能告诉我我们可以做什么以使弹出窗口不被阻止吗?

感谢欢呼, 丹尼斯

we developed an as3 facebook application (http://www.encuentratugemelo.cl), but unfortunately the authenification popup is blocked in all major browsers (ie, ff, chrome), which leads to a high rejection rate for our campaign.
If I have a look here ... http://www.newxv.cl/setomatumuro/
These fellows used the same api (http://code.google.com/p/facebook-actionscript-api/), I checked it with a decompiler and their popup is never blocked!
Can anybody point me into a direcction what we can do that the popup is not blocked?

Gracias y cheers,
Dennis

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回梦 2025-01-03 07:40:00

首先您需要在此处下载更新的 Facebook actionscript api frm

http://code.google.com/p/facebook-actionscript-api/downloads/detail?name=GraphAPI_Web_1_8_1.swc&can=2&q=

然后在您的代码,您编写此代码的位置:

Facebook.login(loginHandler,{scope:"user_birthday,user_photos,read_stream, publish_stream"});

之前我们的代码中有这一行:

Facebook.login(loginHandler,{perms:"user_birthday,user_photos,read_stream, publish_stream"});

注意:请将perms更改为范围

,最后,在html pr php 页面,您将在其中嵌入此 swf:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
        <!-- Include support librarys first -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
        <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>             

        <script type="text/javascript"> 
            //Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers       
            swfobject.embedSWF("FBEmbedTool.swf", "FlashContent", "1003", "600", "9.0", null, null, null, {name:"FlashContent"});
        </script>
    </head>
    <body>
        <div id="fb-root"></div><!-- required div tag -->
        <div id="FlashContent"></div>
    </body>
</html>

我想这会很有帮助,请执行此操作,在进行这些更改后,我们的项目中有一个正在运行的 Fb api。

享受 gr8 时光,保重

First you need to download the updated Facebook actionscript api frm here

http://code.google.com/p/facebook-actionscript-api/downloads/detail?name=GraphAPI_Web_1_8_1.swc&can=2&q=

Then in your code, where you have written this code :

Facebook.login(loginHandler,{scope:"user_birthday,user_photos,read_stream, publish_stream"});

Earlier we had this line in our code:

Facebook.login(loginHandler,{perms:"user_birthday,user_photos,read_stream, publish_stream"});

Note : Please change perms to scope

and finally, in the html pr php page, where you'll embed this swf:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
        <!-- Include support librarys first -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
        <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>             

        <script type="text/javascript"> 
            //Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers       
            swfobject.embedSWF("FBEmbedTool.swf", "FlashContent", "1003", "600", "9.0", null, null, null, {name:"FlashContent"});
        </script>
    </head>
    <body>
        <div id="fb-root"></div><!-- required div tag -->
        <div id="FlashContent"></div>
    </body>
</html>

This will be helpful i guess, please do this, after making these changes, we had a running Fb api in our project.

Have a gr8 time, take care

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文