各社交網站頁面分享代碼

字號+ 編輯: 种花家 修訂: 听风就是我 來源: CSDN博客 2023-09-12 我要說兩句(0)

這個比較靠譜。

Facebook:http://www.facebook.com/sharer.php?u=分享地址

Twitter: https://twitter.com/intent/tweet?url=分享地址&via=分享人(可以@)&text=分享内容

Google+: https://plus.google.com/share?url=分享地址

新浪微博:http://service.weibo.com/share/share.php?url=地址&pic=圖片地址&title=標題&appkey=您申請的應用appkey,顯示分享來源(可選)&ralateUid=關聯用戶的UID,分享微博會@該用戶(可選)

騰訊微博:'http://v.t.qq.com/share/share.php?title='+content+'&url='+url+'&pic='+picurl;

百度貼吧:http://tieba.baidu.com/f/commit/share/openShareApi?url=地址&title=標題&desc=描述&pic=圖片

QQ空間:http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey??url=地址&title=標題&pics=圖片

領英:http://www.linkedin.com/shareArticle?spm= &mini=true&url=地址

pinterest: https://www.pinterest.com/pin/create/button/?url= ?spm= &media= ;


在線客服

QQ

tencent://message/?uin=123456789


skype

skype需要使用在線代碼生成

https://www.skype.com/en/developer/create-contactme-buttons/?intsrc=client-_-windows-_-6.14-_-go-help.guide.webpresence&setlang=zh-Hans


自定義meta標簽

像facebook和人人網這樣的分享鏈接需要填寫meta og標簽, 先在meta屬性上面填寫好。

<meta property="og:locale" content="en_US" />
<meta property="og:type" content="類型" />
<meta property="og:title" content="標題" />
<meta property="og:description" content="簡短說明或摘要" />
<meta property="og:url" content="頁面的網址" />
<meta property="og:site_name" content="網站名稱" />
<meta property="og:updated_time" content="2017-10-06T06:26:30+00:00" />
<meta property="og:image" content="圖片網址" />
<meta property="og:image:secure_url" content="圖片的 https:// 網址" />
<meta property="og:image:width" content="800" />
<meta property="og:image:height" content="300" />


閲完此文,您的感想如何?
  • 有用

    0

  • 沒用

    0

  • 開心

    0

  • 憤怒

    0

  • 可憐

    0

1.如文章侵犯了您的版權,請發郵件通知本站,該文章將在24小時内刪除;
2.本站標注原創的文章,轉發時煩請注明來源;
3.交流群: 2702237 13835667

相關課文
  • 上傳自定義文档的時候查如何填寫上傳表單中的access, mimeType等字段值

  • HTML5+CSS3——第6章 HTML5表單標簽,與瀏覽者交互

  • HTML5+CSS3——第5章 HTML5圖片、鏈接及表格標簽

  • HTML5+CSS3——第4章 HTML5列表標簽

我要說說
網上賓友點評