我已经将我的应用程序发送到Review,它被接受了,但我不知道如何将代码集成到我的应用程序中,这样它就可以在我的应用程序共享时显示“回复”或“安装”。
PS:我的应用程序只共享文本,不共享图像、gif或视频--这是我使用的代码,但它不起作用,请告诉我我做错了什么
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.setPackage("com.facebook.orca");
intent.putExtra(Intent.EXTRA_TEXT, sharedText);
intent.setType("text/plain");
intent.putExtra("com.facebook.orca.extra.PROTOCOL_VERSION", 20150314);
intent.putExtra("com.facebook.orca.extra.APPLICATION_ID", "[My_FbApp_ID_HERE]");
startActivityForResult(intent, 1);
发布于 2016-02-12 08:59:25
我是通过使用messengerUtils来做到这一点的(我仍然不知道为什么它没有故意工作,即使它是写在facebook文档中的)
发布于 2016-02-09 12:47:11
因此,基本上您需要检查FB是否使用)安装。迭代列表,如果您发现com.facebook.orca
,则使用回复意图(只向其发送文本),否则将使用打开its Play Store页面的意图:https://play.google.com/store/apps/details?id=com.facebook.orca,以便他们能够安装它。
https://stackoverflow.com/questions/35301701
复制相似问题