Skip to content

acasaccia/cordova-socialshare-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-socialshare-plugin

Cordova Social Share Plugin for Android

Sends a snippet of text (or just an url for Facebook) to be shared via an android intent to a bunch of whitelisted applications:

  • Facebook
  • System mail
  • Gmail
  • Twitter official
  • Twidroid
  • Tweecaster
  • TweetDeck
  • WhatsApp

Installation:

$ cordova plugin add https://github.com/acasaccia/cordova-socialshare-plugin.git

Usage example:

window.plugins.SocialShare.share(
    successCallback,
    failureCallback,
    {
        dialogTitle : 'Share using:',         // Title of the native dialog
        url : "http://is.gd/DikVaQ",          // Url to be shared
        text : "Take a look at this {{url}}", // Text to be shared where possible (not in Facebook)
                                              // {{url}} will be replaced by given url
        mailSubject : "Great news for you"    // Subject of the email if users select a mail client
    }
);

About

Cordova Social Share Plugin for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published