各社交網站頁面分享代碼

字號+ 編輯: 种花家 修訂: 听风就是我 來源: 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.交流群: PHP+JS聊天群

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

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

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

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

我要說說
網上賓友點評