需要帮助了解opengraph如何工作以及它与“FB Like”按钮的关系。
我们确实在我们的内容的所有页面上部署了opengraph元标记。然而 看起来让“FB Like”按钮工作的唯一方法就是通过facebook linter运行URL。
如果用户尝试“喜欢”以前从未喜欢的网页,则只会将网址发布到墙上。
如果网址是通过linter运行的,那么所有连续的喜欢都会正常工作,图片,标题和描述都会被拉出来。
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.">
<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 ‘very experienced’ in bed during passionate hotel romp, claims masseur Luis Gonzalez ">
<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 "very experienced" in bed.">
答案 0 :(得分:1)
为了将您的网页识别为自定义开放图形对象,您需要按照以下步骤操作。
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验证配置的“应用域”。
将适当的域添加到您的设置中,它应该可以正常工作。