

This will share url on Facebook : Share on Facebook Please make sure you use encodeURI(text) for uri encoding your text. You can simply put urls in the text and it will automatically be picked up. All you have to do is add anchor tag with href as sharing urls. We will only focus on Twitter, Facebook & LinkedIn.

So we have two different behaviour to serve. User simply expect that your share should work with all the apps which supports sharing. Things get a little more complicated on the mobile devices, since sharing feature is not only used for sharing on social media but for a variety of apps like bookmarking apps, messaging apps. When you are browsing on your laptop/desktop and you want to share something you expect it to be taken to social media website with as much as details filled in. You should minimise the user’s effort for sharing then only you can expect good sharing ratio.īefore we dive into technical details we first need to understand user’s expectations on different devices. Adding app like share to your website on mobile and social share urls on desktopĪdding share to social media platforms option on your website can help you greatly generate traffic on your website.
