喜欢FB页面确认之后不会触发edge.create事件 [英] Like FB page doesn't fire edge.create event after confirming

查看:107
本文介绍了喜欢FB页面确认之后不会触发edge.create事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码以前有效,但现在没有。由于FB在喜欢页面时添加了确认框,因此在确认后不再触发edge.create。

The following codes have worked before but not now. Since FB added the confirm box when liking a page, the edge.create was no more fired after confirming.

    <div class="fb-page" data-href="{{ $fbPageUrl }}" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
    <script>
        $(document).ready(function() {
            $.getScript('//connect.facebook.net/en_US/sdk.js', function(){
                FB.init({
                    appId      : 'xxxxxxxxxxxxxx',
                    xfbml      : true,
                    version    : 'v2.9'
                });

                FB.Event.subscribe('edge.create', function(response) {
                    alert('Fired!');
                });
            });
        });
    </script>


推荐答案

我怀疑这是新Facebook更新的错误。你可以在这里搜索问题 https://developers.facebook.com/bugs ,也可以发帖如果尚未报告新错误

I suspect this is a bug from the new Facebook's update. You can search for the issue here https://developers.facebook.com/bugs, also can post a new bug if it hasn't been reported yet

这篇关于喜欢FB页面确认之后不会触发edge.create事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆