0
我想使用FB的開放圖標籤,並使用https://developers.facebook.com/tools/debug/og/object/來驗證我的標記。結果給了我三個錯誤。Facebook Open Graph調試問題
Inferred Property The 'og:url' property should be explicitly provided, even if a value can 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.
fb:app_id hasn't been included in the meta tags. Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
這裏是我的源代碼片段。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<meta http-equiv="content-type" content="text/html,charset=utf-8"/>
<head>
<title>I am Saving For</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no">
<meta property="og:title" content="Live Richer">
<meta property="og:description" content="I Am Saving For">
<meta property="og:type" content="website">
<meta property="fb:app_id" content="944869545605682">
<meta property="og:url" content="http://www.livericherchallenge.net/">
<meta property="og:image" content="http://lh3.googleusercontent.com/5188mjZW9WTa9PQRefM4YEqkH8Ry_ztq6flrPHlrX5zV4eCtnQtsGxpjJtV2pBHQG3S9ANBXLLFtDb-eMIkLVgs=s0">
<link rel="stylesheet" href="font/fonts.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.livericherchallenge.net%2F" target="_blank">FACEBOOK</a>
</body>
</html>
什麼是不正確的與我的元標記?我有正確輸入的url,title和app_id。
這並不解決爲什麼我的元標籤沒有被正確讀取的問題。或者我在這裏錯過了一個原因? –
@AngrySpartan你在背景中使用了一些我不知道的東西。我只能看到調試器顯示的內容。您的標籤顯然格式不正確。 – phwd
你發佈的代碼並不是我在去那個網站時看到的@AngrySpartan – phwd