Vishal Chaudhary
Vishal Chaudhary

Reputation: 176

How can I share data on facebook?

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

Answers (2)

Juicy Scripter
Juicy Scripter

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

Steve
Steve

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

Related Questions