gpt4 book ai didi

android - facebook:您的链接无法共享

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:58:40 25 4
gpt4 key购买 nike

我添加了使用 android 的共享 Intent 从我的应用程序共享分数的功能:

Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Score");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "I scored "+score+" on "+difficultyString+" difficulty.");

context.startActivity(Intent.createChooser(shareIntent, "Share your score"));

当我从选择器中选择 Facebook 时,它会转到 m.facebook.com 并显示“您的链接无法共享”。这里出了什么问题?

最佳答案

这是在尝试分享到 facebook 时在所有 android 应用程序中发现的常见问题。 Facebook 阻止其他应用程序使用他们的应用程序进行共享。我不确定为什么,但许多公司都试图绕过这一点。目前,它是“无法修复的”。对不起。

关于android - facebook:您的链接无法共享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3824613/

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