简体   繁体   English

通过Facebook Messenger App分享-ionic框架/ Cordova Apache

[英]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. 我需要共享从我的应用程序到Facebook Messenger应用程序的链接,因为我需要发送给特定的联系人。 I tried the plugin [SocialSharing-PhoneGap-Plugin] and it looks like that's possible on Android, example: 我尝试了插件[SocialSharing-PhoneGap-Plugin],看起来在Android上可以实现,例如:

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. 这似乎可行,但是当我选择联系人并按“发送”按钮时,它会因加载popUp而冻结,而我找不到解决方案。

I need a solution for this plugin or a similar one. 我需要该插件或类似插件的解决方案。 The objective is to share via Facebook Messenger on Android and iOS. 目的是通过Android和iOS上的Facebook Messenger分享。

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) });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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