kni-labs/rrssb

Configure URL and share text with javascript

coolwebs opened this issue · 2 comments

dbox, can you include a sample of this feature? At the moment I'm using your lib and handcoding the share details into the URL like your example (except for OG stuff). Because the way that social media shares via URL are all different, I'm having issue with getting that jQuery feature to configure share text.

dbox commented
<script type="text/javascript">

jQuery(document).ready(function ($) {

  $('.rrssb-buttons').rrssb({
    // required:
    title: 'This is the email subject and/or tweet text',
    url: 'http://kurtnoble.com/labs/rrssb/',

    // optional:
    description: 'Longer description used with some providers',
    emailBody: 'Usually email body is just the description + url, but you can customize it if you want'
  });
});
</script>

Thanks man!