I am developing app using jQuery Mobile and Phonegap.
i need to share image on Facebbok,Twitter and Whatsapp.
I am using
https://github.com/EddyVerbruggen/Soc...
this plugin.
i add
in my head.
My HTML Page:
my config.xml
Androidmainfest.xml
then i Copy SocialSharing.java to platforms/android/src/nl/xservices/plugins
but whenever i click on share button nothing is happened
any suggestion.
i need to share image on Facebbok,Twitter and Whatsapp.
I am using
https://github.com/EddyVerbruggen/Soc...
this plugin.
i add
<script src="js/cordova.js"></script>
<script type="text/javascript" src="js/SocialSharing.js"></script>
in my head.
My HTML Page:
<center><button onclick="window.plugins.socialsharing.share('Type your Message','image/folder1/my1.jpg',null,function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">Share</button></center>
<center><button onclick="window.plugins.socialsharing.shareViaFacebook('This is an image', 'image/folder1/my1.jpg', null, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">Facebook</button></center>
<center><button onclick="window.plugins.socialsharing.shareViaTwitter('Message and link via Twitter','image/folder1/my1.jpg', null,function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">Twitter</button></center>
<center><button onclick="window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp',image/folder1/my1.jpg, null, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})"> WhatsApp</button></center>
my config.xml
<gap:plugin name="nl.x-services.plugins.socialsharing" />
<!-- for Android -->
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
</feature>
Androidmainfest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
then i Copy SocialSharing.java to platforms/android/src/nl/xservices/plugins
but whenever i click on share button nothing is happened
any suggestion.





