gpt4 book ai didi

android - 手机间隙 : SocialSharing phonegap plugin not working with pre filled message in FBDialog

转载 作者:行者123 更新时间:2023-11-29 12:22:54 26 4
gpt4 key购买 nike

Note : That bug is resolved now without single change in code. may be by FB.

我正在 Phonegap 中开发应用程序平台 : iOS , Android

我正在使用这个社交分享 phonegap 插件 https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin .

我已经尝试过 window.plugins.socialsharing.shareViaFacebookwindow.plugins.socialsharing.shareViaFacebookWithPasteMessageHint 但我没有通过 FBDialog 分享预填充消息取得任何成功

我们将不胜感激任何帮助。

代码:

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

最佳答案

来源: EddyVerbruggen/SocialSharing-PhoneGap-Plugin

带有预填充消息的 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").

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). 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.

<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>

关于android - 手机间隙 : SocialSharing phonegap plugin not working with pre filled message in FBDialog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30078359/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com