2016-01-22 75 views
0

我有一個求職門戶網站,並且我有一個名爲share in fb的Facebook按鈕。我希望當用戶點擊該按鈕時,我的網頁的特定工作描述應該在他的牆上分享。在Facebook上分享我的網站內容的提示

<a rel='nofollow' href='http://www.facebook.com/share.php?u=http://testing.com/current_openings.php?JobId=".$jobiid."' target='_blank'>share in fbk</a> 

以上鍊接去共享頁面,但其內容來自網頁關於我們的頁面,而不是具體內容。

+0

調試在URL的https://developers.facebook .com/tools/debug/og/object/ – WizKid

回答

0

爲每個想要共享的網站設置元標記。

,把它們放進HTML頭狀this

<meta property="og:url"    content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" /> 
<meta property="og:type"    content="article" /> 
<meta property="og:title"    content="When Great Minds Don’t Think Alike" /> 
<meta property="og:description"  content="How much does culture influence creative thinking?" /> 
<meta property="og:image"    content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" /> 

屬性包括描述性元數據有關的文章,我們特別希望在場的時候

+0

感謝您的評價。每次使用this.please回覆我都可能分享最新的工作信息 – sona