Wednesday 6 April 2016

How to share selected text on facebook and twitter.?

Introduction:

I am going to explain how to share selected text from website to facebook, twitter and email.


Step 1:


Download this css and add it into your head tag. download here.

Step 2:

Download the js files and add it into your project. download here.


Step 3:

Add this script into bottom of your page.


  1.   <script>
  2.         var sharer = new SelectionSharer('p');
  3.   </script>

No comments:

Post a Comment