如何发布打开的图形对象

时间:2012-05-16 18:56:49

标签: facebook-like opengraph

需要帮助了解opengraph如何工作以及它与“FB Like”按钮的关系。

我们确实在我们的内容的所有页面上部署了opengraph元标记。然而 看起来让“FB Like”按钮工作的唯一方法就是通过facebook linter运行URL。

如果用户尝试“喜欢”以前从未喜欢的网页,则只会将网址发布到墙上。

如果网址是通过linter运行的,那么所有连续的喜欢都会正常工作,图片,标题和描述都会被拉出来。

  • app_id是否可能无法与网页正确链接?
  • 让我们的FB管理员去,并且所有产生的内容都不是一个选项

http://www.nydailynews.com/life-style/travel/underwater-photos-amazing-shots-sea-gallery-1.1078782

<meta property="fb:app_id" content="366487756153">
<meta property="fb:admins" content="1594068001">
<meta property="og:site_name" content="NY Daily News">                            
<meta property="og:title" content="Mark Tipple's Underwater Project - Underwater photos: Amazing shots from under the sea">
<meta property="og:type" content="article">
<meta property="og:url" content="http://www.nydailynews.com/life-style/travel/underwater-photos-amazing-shots-sea-gallery-1.1078782">
<meta property="og:image" content="http://assets.nydailynews.com/polopoly_fs/1.1078770!/img/httpImage/image.jpg_gen/derivatives/searchthumbnail_75/image.jpg">
<meta property="og:description" content="Talented underwater photographer Mark Tipple, from Sydney, Australia, lies in wait for unsuspecting swimmers and surfers before snapping a perfect picture of them from beneath the waves.">

http://www.nydailynews.com/gossip/john-travolta-experienced-bed-passionate-hotel-romp-claims-masseur-luis-gonzalez-article-1.1079272

<meta property="fb:app_id" content="366487756153">
<meta property="fb:admins" content="1594068001">
<meta property="og:site_name" content="NY Daily News">                            
<meta property="og:title" content="John Travolta was 'a great kisser' and &lsquo;very experienced&rsquo; in bed during passionate hotel romp, claims masseur Luis Gonzalez&nbsp;">
<meta property="og:type" content="article">
<meta property="og:url" content="http://www.nydailynews.com/gossip/john-travolta-experienced-bed-passionate-hotel-romp-claims-masseur-luis-gonzalez-article-1.1079272">
<meta property="og:image" content="http://assets.nydailynews.com/polopoly_fs/1.1079279!/img/httpImage/image.jpg_gen/derivatives/searchthumbnail_75/image.jpg">
<meta property="og:description" content="Another hotel masseur is claiming sexual shenanigans on the part of John Travolta -- only this accuser says he welcomed the actor's horny horseplay and found him &quot;very experienced&quot; in bed."> 

2 个答案:

答案 0 :(得分:1)

为了将您的网页识别为自定义开放图形对象,您需要按照以下步骤操作。

  • 创建Facebook应用
  • 设置网站域名,命名空间等...
  • 在应用设置&gt;&gt;下创建自定义操作和自定义对象打开图表:入门(see this link for help
  • 创建后,您将在“打开图表设置”
  • 中的对象类型下看到您的对象
  • 点击“获取代码”按钮获取html标签
  • 更新您的页面以显示相同的html head&amp;元标记
  • 转到http://developers.facebook.com/tools/debug以测试您是否已正确设置

P.S。如果有效,请不要忘记找到正确的答案,或者PM我以获得更多帮助

答案 1 :(得分:0)

您的网址未设置为应用程序,如linter中所述,

  

“文章”类型的网址“http://www.nydailynews.com/life-style/travel/underwater-photos-amazing-shots-sea-gallery-1.1078782”中的对象无效,因为域名为“www”。 nydailynews.com'不允许使用指定的应用程序ID'366487756153'。您可以在https://developers.facebook.com/apps/366487756153验证配置的“应用域”。

将适当的域添加到您的设置中,它应该可以正常工作。