fb feed_share在移动浏览器

时间:2016-02-26 09:52:32

标签: javascript jquery facebook fb.ui

嗨,大家好我有问题 这里是代码

function fb_share(url, destination) {
  FB.ui({
      method: 'feed',
      link: url,
    },
    function(response) {
      if (response && !response.error_code) {
        url = destination;
        $.ajax({
          url: url,
          type: "POST",
          dataType: "json",
          contentType: "application/json"
        }).done(function(response) {
          if (response.status == 'ko') {
            showMessageModal(response.title, response.message);
          } else {
            showMessageModal(response.title, response.message, response.goto, response.removeDOM, response.addDOM);
          }
        });
        showMessageModal(response.title, response.message, response.goto, response.removeDOM, response.addDOM);
      }
    });
} {
  scope: 'public_profile,email,user_friends'
};
当我使用智能手机从我的网站分享帖子时,我会看到一个空白页面 https://m.facebook.com/v2.0/dialog/feed 为什么?我在代码中做错了什么? 全部

0 个答案:

没有答案