APO*_*SHI 4 android android-intent
当通过意图文本分享未在Facebook中显示时
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(android.content.Intent.EXTRA_TEXT, "HELOO WORLD");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Share with"));;
Run Code Online (Sandbox Code Playgroud)
Ada*_*eld 12
据Facebook称,这是按照设计的.从这个Facebook开发者的bug报告(Facebook登录需要查看):
Jesse Chen·Facebook软件工程师
嗨Facebook开发人员,此问题将由设计关闭,因为我们的API不支持为用户预填充消息,如我们的策略文档(https://developers.facebook.com/docs/guides/policy/application_integration_points/)中所示.平台政策IV.2.
2012年8月13日
注意:上面提供的链接已被破坏; Facebook平台政策的当前链接在这里:https://developers.facebook.com/policy/#integration(强调添加):
IV.应用集成点
- [...]
- 您不得预先填写与以下产品相关联的任何字段,除非用户在工作流程中先前手动生成内容:流故事(Facebook.streamPublish和FB.Connect.streamPublish的user_message参数以及流的消息参数).发布),照片(标题),视频(描述),注释(标题和内容),链接(评论)和Jabber/XMPP.
因此,Facebook应用程序只是强制执行此操作 - 如果您尝试与预先填写的文本共享内容,Facebook不知道它是由用户编写还是由应用程序填写,因此它不做任何假设,忽略该文本,并要求用户编写文本.
| 归档时间: |
|
| 查看次数: |
8337 次 |
| 最近记录: |