简体   繁体   English

Phonegap:SocialSharing phonegap插件不适用于FBDialog中的预填充消息

[英]Phonegap: SocialSharing phonegap plugin not working with pre filled message in FBDialog

Note : That bug is resolved now without single change in code. 注意:该错误现已解决,无需更改代码。 may be by FB. 可能是FB。

I am developing an app in Phonegap platforms : iOS , Android 我正在Phonegap平台上开发应用程序:iOS,Android

I am using this social sharing phonegap plugin https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin . 我正在使用这个社交共享phonegap插件https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin

I have tried window.plugins.socialsharing.shareViaFacebook and window.plugins.socialsharing.shareViaFacebookWithPasteMessageHint but i didn't got any success in sharing pre filled message through FBDialog 我已经尝试过window.plugins.socialsharing.shareViaFacebookwindow.plugins.socialsharing.shareViaFacebookWithPasteMessageHint但通过FBDialog共享预填充消息没有获得任何成功

Any help would be heartily appreciated. 任何帮助将由衷的感谢。

code : 代码:

window.plugins.socialsharing.shareViaFacebookWithPasteMessageHint(
    "userMsz",
    null,
    null,
    'Message pasted to clip board ,press on the area to paste it in the feed',
    function(){}, 
    function(){}
);

SOURCE : EddyVerbruggen/SocialSharing-PhoneGap-Plugin 消息来源: EddyVerbruggen / SocialSharing-PhoneGap-Plugin

Facebook with prefilled message 带有预填充消息的Facebook

On Android the user will see a Toast message with a message you control (default: "If you like you can paste a message from your clipboard"). 在Android上,用户将看到一条Toast消息,其中包含您控制的消息(默认值:“如果您愿意,可以从剪贴板粘贴消息”)。

On iOS this function used to behave the same as shareViaFacebook, but since 4.3.18 a short message is shown prompting the user to paste a message (like Android). 在iOS上,此功能的行为与shareViaFacebook相同,但是从4.3.18开始,将显示一条短消息,提示用户粘贴消息(例如Android)。 This message is not shown in case the Fb app is not installed since the internal iOS Fb share widget still supports prefilling the message. 如果未安装Fb应用程序,则不会显示此消息,因为内部iOS Fb共享小部件仍支持预​​填充消息。

<button
 onclick="window.plugins.socialsharing.shareViaFacebookWithPasteMessageHint('Message via Facebook', null /* img */, null /* url */, 'Paste it dude!', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">msg via Facebook (with errcallback)
</button>

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

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