各社交网站页面分享代码

字号+ 编辑: 种花家 修订: 听风就是我 来源: 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列表标签

我要说说
网上宾友点评