i want to enable my app users to share their records on facebook, how can i do so? i donwloaded the facebook sdk but i cannot find a proper guide..
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
have you got any idea?
试试这个,这是facebook android集成的很好的教程facebook android集成
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.