最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a URL that can be used for a “Share on Slack” button? - Stack Overflow

programmeradmin1浏览0评论

I'd like to put a "Share on Slack" button on my website. It would be similar to the buttons we have for "Share on Facebook" and "Share on Twitter". A user would click on it and be able to post some text and a link that we suggest on Slack.

I've been able to find URLs that I can use on Facebook and Twitter for doing this, but I've been unable to track down one for Slack? Does it exist? I see that AddThis was able to implement a button but I'm not sure exactly how they are doing it.

I'd like to put a "Share on Slack" button on my website. It would be similar to the buttons we have for "Share on Facebook" and "Share on Twitter". A user would click on it and be able to post some text and a link that we suggest on Slack.

I've been able to find URLs that I can use on Facebook and Twitter for doing this, but I've been unable to track down one for Slack? Does it exist? I see that AddThis was able to implement a button but I'm not sure exactly how they are doing it.

Share Improve this question edited Jul 4, 2022 at 19:25 TylerH 21.1k79 gold badges79 silver badges114 bronze badges asked Sep 20, 2017 at 8:08 uthayuthay 1232 silver badges11 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

The reason you could not find a "Share on Slack" button is that Slack is not a public munity site like Facebook and Twitter, but consists of many closed groups. Think of it as closed Facebook groups that require approval to join. And each Slack team has a different internal structure, there is no "main feed" to share something on, but many channels with names defined by each team.

Consequently your "Share on Slack" button would need to first get authorization for each Slack team you want to share on, so each user would need to install your button (with its Slack app) to their Slack team. Its a cumbersome process and many users will probably not have permission from their admins to do so. Its technically possible though and will require you to create a Slack app with server-side coding to implement. Just a URL will not work.

发布评论

评论列表(0)

  1. 暂无评论