无法从最新的ShareButton CodenameOne api共享

问题描述 投票:0回答:1

我已将Facebook Demo导入netbeans,并遵循了开发人员指南中提到的准则,并设置了所需的facebook权限。但是我无法将文字分享到墙上,因为它可以检索朋友列表,个人资料和新闻提要。

final ShareButton share = new ShareButton();
final TextArea t = new TextArea(" This is sample text from using CodenameOne api");
t.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            share.setTextToShare(t.getText());
        }
    });
c.addComponent(BorderLayout.CENTER, t);
share.setTextToShare(t.getText());

是否缺少集成或设置任何其他权限的内容?

android facebook java-me codenameone
1个回答
0
投票

如果在设备或模拟器中,则需要清除。在iOS / Android上,使用了本地共享功能,其行为与模拟器有很大不同。

Facebook最近更改了权限的工作方式,并从根本上阻止了对非iOS / Android平台的支持。在阻止之后,此操作仍然有效,但有可能停止了。

© www.soinside.com 2019 - 2024. All rights reserved.