Facebook like callback function not working in ope

2019-06-04 04:13发布

Do not work callback functions to this button. Opera Dragonfly for facebook shows this error:

Unhandled Error: JSON.parse: Unescaped control char in string: "

in the file http://connect.facebook.net/ru_RU/all.js

Code pages standard:

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

        <script type="text/javascript">
            window.fbAsyncInit = function() {
                FB.Event.subscribe('edge.create', function(href, widget) {
                   alert('ok'); 
                });
            }
        </script>
        <div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="true"></div>

0条回答
登录 后发表回答