2012-05-16 84 views
0

需要幫助瞭解opengraph是如何工作的以及它如何與「FB Like」按鈕相關。如何發佈opengraph對象

我們在我們的內容的所有頁面上都部署了opengraph元標記。然而, 它看起來像獲得「FB Like」按鈕的唯一方法,就是通過facebook linter運行URL。

如果用戶嘗試「喜歡」該頁面,該頁面之前從未被喜歡過,只有該URL會被張貼到牆上。

如果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."> 

回答

1

爲了讓網頁公認一個自定義的開放圖形對象,你需要遵循這些步驟。

  • 創建一個Facebook應用程序
  • 設置站點的域,命名空間等..
  • 創建一個自定義操作,並在應用程序設置的自定義對象>>的Open Graph:入門(see this link for help
  • 後創建它,你會看到你的對象在打開圖形設置對象類型
  • 點擊「獲取代碼」按鈕來獲取html標籤
  • 更新您的頁面顯示相同的html頭& m ETA標籤
  • 轉到http://developers.facebook.com/tools/debug測試,如果你有安裝的一切權利

附:不要忘了打正確的答案,如果它的工作原理,或PM我更多的幫助

0

您的網址沒有被設置爲在棉短絨提到的應用程序,在URL「

對象的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驗證您配置的「應用程序域」。

將適當的域添加到您的設置,它應該工作。