woff 發表於 2012-2-25 18:52:04

Facebook 設定分享網頁的標題 + 內文 + 圖片

這其實是老梗了,應該不少人知道
但是這個老梗還是有讓我學到些東西
就是別人分享你網址到塗鴉牆的時候,可以用下面這些meta tag 來事先定義好內容
http://developers.facebook.com/docs/opengraph/
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og=http://ogp.me/ns# xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <title>The Rock (1996)</title>
    <meta property="og:title" content="The Rock"/>
    <meta property="og:type" content="movie"/>
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
    <meta property="og:site_name" content="IMDb"/>
    <meta property="fb:admins" content="USER_ID"/>
    <meta property="og:description" content="A group of U.S. Marines, under command of a renegade general, take over Alcatraz and threaten San Francisco Bay with biological weapons."/>
    ...
</head>
...
</html>

但是如果你之前已經分享過,但是你現在想要改成上面這樣自訂分享訊息的話
請到這個網頁來輸入網址http://developers.facebook.com/tools/debug因為據說 facebook 會暫存這個資料24h,所以林杯上班偶爾裝認真改了半天卻絲毫不為所動
按下那個 button 之後才一切美好

woff 發表於 2013-2-1 19:31:25

{:5_4:}牛X海海!!!

芳禾炳学 發表於 2014-6-21 11:25:05

不错!不错!不错!

金欢花合 發表於 2015-5-20 08:40:22



不敢相信哦
頁: [1]
查看完整版本: Facebook 設定分享網頁的標題 + 內文 + 圖片