Facebook Feed对话框帖子无法正确重新共享(重新发布)

时间:2013-06-20 06:22:09

标签: facebook opengraph facebook-opengraph

我已经使用Facebook UI方法为我的应用程序成功设置了facebook feed对话框,但当其他用户尝试使用Facebook上的“共享”链接时,我得到了一些奇怪的行为。此重新分享的内容与最初共享的内容不同,并且似乎是javascript片段。

这是我当前的Feed对话代码:

FB.ui({
    method: 'feed',
    redirect_uri: link.attr('href'),
    name: "Check out this image on WorkHands",
    picture: link.closest('.thumbnail').find('.featured-image').attr('src'),
    link: link.attr('href'),
    caption: 'Work by' + link.closest('.thumbnail').find('.project-creator').text(),
    description: link.closest('.thumbnail').data('description'),
    display: 'popup'
}

产生这样的东西: enter image description here

然而,只要它在Facebook上共享,对话框就像这样:

enter image description here

我只能认为这必须与页面上的元标签有关? 目前,元标记与为Feed对话框创建的元标记略有不同:

<meta content="103896" property="fb:admins" />
<meta content="WorkHands" property="og:site_name" />
<meta content="website" property="og:type" />
<meta content="Project by Ron Andrade" property="og:title" />
<meta content="https://www.workhands.us/images/78a98834-59fa-48c7-8d93-8ffaa0a75811"    property="og:url" />
<meta content="https://www.workhands.us/assets/work-hands-logo-595.png" property="og:image" />
<meta content="WorkHands is for workers in construction, plumbing, welding, landscaping, electrical, masonry, HVAC, automotive, trucking, and other skilled trades." property="og:description" />

0 个答案:

没有答案