无法在Angular Universal中共享子路径(延迟加载的模块)的动态元标记

时间:2019-09-05 14:57:24

标签: angular-universal

无法将从api调用中提取的动态生成的元标记共享到通用角度的Facebook中

使用facebook“ share_open_graph”方法将元标记共享到facebook

 FB.ui({
    method: 'share_open_graph',
    mobile_iframe: true,
    action_type: 'og.likes',
    action_properties: JSON.stringify({
      object: {
        'og:url': data.auctionUrl,
        'og:title': data.auctionName,
        'og:description': data.shareText,
        'og:image': data.auctionImg
      }

    })
  }, function (response) { });

无法共享,显示空白屏幕。有人可以帮忙吗?

0 个答案:

没有答案
相关问题