[英]two FB like button in the same page with different title , description and picture
是否可以在同一頁面上添加兩個按鈕:
http://www.mysite.com
,並帶有首頁特定的標題,圖像和描述 http://www.mysite.com/article?id=511
,以及標題,描述和圖片511專有的圖像。 請查看開放圖協議文檔,因為您需要根據所在的頁面來提供正確的標記。
例如,在主頁上:
<meta property="og:title" content="My Site Name" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.mysite.com" />
<meta property="og:image" content="img" />
並在文章頁面上:
<meta property="og:title" content="My Article Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.mysite.com/article?id=511" />
<meta property="og:image" content="img2" />
<meta property="og:description" content="My article description" />
<meta property="og:site_name" content="My Site Name" />
然后,只需在想要的任何頁面上為這些不同的URL提供“贊”按鈕即可。
是的,只需將每個“喜歡”按鈕上的href屬性設置為適當的URL。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.