简体   繁体   中英

Share via Facebook Messenger App - ionic framework / Cordova apache

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.

尝试这个:

window.plugins.socialsharing.shareVia('com.facebook.orca', 'The message', null, null, 'https://www.google.com/', function () { console.log('share ok') }, function (errormsg) { alert(errormsg) });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM