Reputation: 597
I need to share a link from my app to the Facebook Messenger App, because I need to send to specific contacts. I tried the plugin [SocialSharing-PhoneGap-Plugin] and it looks like that's possible on Android, example:
window.plugins.socialsharing.shareVia('com.facebook.orca', 'Message via FB', null, null, null, function(){console.log('share ok')}, function(msg) {alert('error: ' + msg)});
This seems to work but when I select the contacts and I press the send button, it freeze with loading popUp, and I can't find the solution.
I need a solution for this plugin or a similar one. The objective is to share via Facebook Messenger on Android and iOS.
Thanks in advance.
Upvotes: 2
Views: 2723
Reputation: 56
Try this:
window.plugins.socialsharing.shareVia('com.facebook.orca', 'The message', null, null, 'https://www.google.com/', function () { console.log('share ok') }, function (errormsg) { alert(errormsg) });
Upvotes: 4