Reputation: 176
I am creating a news application and want to share the whole contents of the news which the user reads, and have a button named "facebook". As the user clicks on the button, the facebook login window should open on my activity, and after the user logs in, the whole story should post on his wall.
Upvotes: 1
Views: 457
Reputation: 25938
You need to use one of Facebook "Social Channels" (like "Like" or "Send" buttons or "Feed Dialog") to publish content and for logging users in you may use FB.login
or Facebook::getLoginUrl
You really should read some documentation on subject:
Upvotes: 1
Reputation: 469
In a broad sense you can use a share intent, however you may want a little more control than this offers.
A good example; http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent
Upvotes: 0