[英]How to share game's record on facebook
i want to enable my app users to share their records on facebook, how can i do so? 我想让我的应用程序用户能够在Facebook上共享他们的记录,我该怎么做? i donwloaded the facebook sdk but i cannot find a proper guide..
我没有下载Facebook SDK,但找不到合适的指南。
i tried sharing it via an intent like 我试图通过这样的意图分享它
btShare.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, "https://play.google.com/store/apps/details?id=g.d.squarememory");
startActivity(Intent.createChooser(shareIntent, "Share..."));
}
});
but 但
1° it doesn't share the text and link i want 2° i'd like a text next to the logo of my app 1度,它不共享文本和链接,我想要2度,我想在我的应用程序徽标旁边输入一个文本
have you got any idea? 你有什么主意吗
试试这个,这是facebook android集成的很好的教程facebook android集成
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.