無法預先填充Like按鈕的註釋字段,因爲它必須是用戶生成的。但是,您可以爲每個表格行創建唯一的網址,以便在類似的按鈕故事中生成唯一的內容來表示用戶喜歡的內容。例如:
<fb:like href="http://www.example.com/example.php?row=row1"></fb:like>
<fb:like href="http://www.example.com/example.php?row=row2"></fb:like>
與每個唯一網址關聯的OG元數據應代表該行的商品信息。例如:
<meta property="og:title" content="Row 2 Item"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.example.com/example.php?row=row2"/>
<meta property="og:image" content="http://www.example.com/example_row2.jpg"/>
<meta property="og:site_name" content="example"/>
<meta property="og:description" content="Information about item at row 2"/>
該死,這太糟糕了。感謝您的澄清和模擬功能的想法。乾杯!! – James