2010年7月8日 星期四

Blogspot推文到 facebook

昨天看到我妹的部落格文章,出現在facebook上,而且一點連結就回連到他的部落格,我覺得這樣還挺方便的,所以自己嘗試了一下,不過facebook上的是匯入部落格文章,點連結後也只是連結到我facebook的網誌罷了,根本不大一樣,於是我今天問了我妹,他回答我,是文章下方有個推文的按鈕,按了就推文過去。原來是這樣啊,不過問了我就知道我要找怎麼樣的東西了,原來我是要找程式碼然後安裝再我的部落格裡面啊。

於是上網google了一下,找到了一個網站有再教學,網站網址為:http://tw.myblog.yahoo.com/happy-ok/article?mid=38313

其實這個程式碼安裝很容易的
第一.先把下列的程式碼複製


<div style='float:right;'>
<a expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot;
+ data:post.url + &quot;&amp;t=&quot; + data:post.title' rel='external
nofollow' target='_blank' title='
分享至 Facebook'><img src='http://sites.google.com/site/tacochu/photo/facebook.gif'/></a></div>

第二.到blogspot後台的"修改HTML"


然後找到" data:post.body"這個關鍵字,把上面的語法貼在關鍵字的上方即可

然後回到首頁就可以看到如下圖


只要按下那個F的藍色圖案,就可以推文到facebook啦。圖片可以自己選擇,可以放自己喜歡的圖片只要改圖片連結就好啦。

至於Plurk.twtter的部份,如下:

推文到Plurk的按鈕(圖片連結請自行修改)

<div style='float:right;'>
<a expr:href='&quot;http://www.plurk.com/?qualifier=shares&amp;status=&quot;
+ data:post.url + &quot; &quot; + &quot;(&quot; +
data:post.title + &quot;)&quot;' target='_blank' title='
推文至噗浪'><img src='http://sites.google.com/site/tacochu/photo/facebook.gif'/></a>


推文到twtter的按鈕(圖片連結請自行修改)

<div style='float:right;'>
<a expr:href='&quot;http://twitter.com/?qualifier=shares&amp;status=&quot;
+ data:post.url + &quot; &quot; + &quot;(&quot; +
data:post.title + &quot;)&quot;' target='_blank' title='
推文至Twitter'><img src='http://sites.google.com/site/tacochu/photo/facebook.gif'/></a>

沒有留言: