# How can I custom share button?

**URL:** https://meta.discourse.org/t/how-can-i-custom-share-button/20529
**Category:** Feature
**Created:** [September 27, 2014, 8:48am UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529 "2014-09-27T08:48:53Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![longshun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/longshun/32/34479_2.png) [@longshun](https://meta.discourse.org/u/longshun)
#### Post date: [September 27, 2014, 8:48am UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/1 "2014-09-27T08:48:53Z")

</div>

As the image shows below:  
 ![](https://global.discourse-cdn.com/meta/original/3X/9/3/93a36f0d5be94085670fcfe143c92aeba4b625f4.png)

Only these types sharing are available. What if my user want to share any other site, they have no way.

So my question is how can I custom my share button or make a plugin to make it possible to share to other site?

---

<div class="post-metadata">

### Author: ![Frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Frank](https://meta.discourse.org/u/Frank)
#### Post date: [September 27, 2014, 5:41pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/2 "2014-09-27T17:41:32Z")

</div>

Can you recommend to the Discourse team the social sites you wish to include?

Which ones do your users care about?

---

<div class="post-metadata">

### Author: ![JonahAragon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonaharagon/32/35064_2.png) [@JonahAragon](https://meta.discourse.org/u/JonahAragon)
#### Post date: [September 27, 2014, 7:35pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/3 "2014-09-27T19:35:33Z")

</div>

They could always just copy/paste that link though right? It’s not the best solution but I think that would be the easiest way, or do what @Frank said and just recommend some to the DIscourse team.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [September 27, 2014, 8:22pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/4 "2014-09-27T20:22:31Z")

</div>

Maybe this could be tied in somehow with the SSO stuff?

---

<div class="post-metadata">

### Author: ![longshun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/longshun/32/34479_2.png) [@longshun](https://meta.discourse.org/u/longshun)
#### Post date: [September 28, 2014, 1:21am UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/5 "2014-09-28T01:21:29Z")

</div>

Yeah, thank you for your advice.  
I think I should tell the team what social sites we need.

@sam can you help us add these types of sites like QQ, Weibo. What I need to do?

---

<div class="post-metadata">

### Author: ![jiyinyiyong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jiyinyiyong/32/115133_2.png) [@jiyinyiyong](https://meta.discourse.org/u/jiyinyiyong)
#### Post date: [October 28, 2014, 10:55am UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/6 "2014-10-28T10:55:04Z")

</div>

It would be nice for us too if there are buttons to share posts to Weibo.  
And we built [http://react-china.org](http://react-china.org) with Discourse.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 28, 2014, 8:32pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/7 "2014-10-28T20:32:04Z")

</div>

We definitely want to make this easier to customize. @eviltrout can you add this to your list for 1.2 extensibility?

---

<div class="post-metadata">

### Author: ![wuchong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wuchong/32/115554_2.png) [@wuchong](https://meta.discourse.org/u/wuchong)
#### Post date: [November 30, 2014, 8:27am UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/8 "2014-11-30T08:27:40Z")

</div>

@sam @codinghorror I can help to add some Chinese social share buttons like QQ , Weibo , WeChat.  
Do I just need to modify `share_links.js` ? Anything else?

I’m sorry this is my first time to edit source files and I have no idea about Discourse development.

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [December 9, 2014, 3:24pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/9 "2014-12-09T15:24:46Z")

</div>

This adds support for sharing links to weibo & renren.  
[https://meta.discourse.org/t/chinese-share-links/23000](https://meta.discourse.org/t/chinese-share-links/23000)

FYI @eviltrout Sharing links to other platforms in China is complicated. Often required to include a script hosting on their sites. And they would also provide their logo photo(font awesome may not include their service).

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [March 23, 2015, 7:44pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/10 "2015-03-23T19:44:40Z")

</div>

I forgot to close this topic, but we added Sharing extensibility in Discourse 1.2. Here is the API plugins can use:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/sharing.js.es6#L7](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/sharing.js.es6#L7)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [March 23, 2015, 7:44pm UTC](https://meta.discourse.org/t/how-can-i-custom-share-button/20529/11 "2015-03-23T19:44:47Z")

</div>


