2013-04-30 66 views
0

這是我們的頁面http //:www.playtown-game.com。如果您查看源代碼,您會看到我們爲facebook定義了開放圖標記以顯示我們想要的圖像和描述。然而,它似乎並沒有工作,我們已經嘗試使用lint清除Facebook的緩存。Facebook的開放圖標籤不起作用

林特抱怨說:

Inferred Property: The 'og:url' property should be explicitly provided, even if a valuec  an be inferred from other tags. 
Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags. 

...儘管我們已經定義那些在meta標籤..任何想法?謝謝...

+0

哪裏是你的meta標籤?我沒有在[data scraped](https://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fwww.playtown-game.com%2F)中找到它們Facebook – 2013-04-30 12:05:24

回答

1

我認爲這個問題是您使用的將用戶重定向到站點移居方法http://www.playtown-game.com/playtown/app/portal/

<meta http-equiv="Refresh" content="0; URL=http://www.playtown-game.com/playtown/app/portal/"> 

這是Facebook的標記刮https://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fplaytown-game.com%2F

的選項有:

  1. 將facebook打開的圖形屬性添加到重定向您的用戶的html文件中
  2. 或使用例如PHP一些其他的重定向方法
<?php 
     header("HTTP/1.1 301 Moved Permanently"); 
     header("Location: http://www.playtown-game.com/playtown/app/portal/"); 
    ?> 
+0

Yeap就是這樣:)我們將OG標籤添加到重定向到實際頁面的腳本。謝謝! – sirival 2013-04-30 12:23:53