views:

58

answers:

1

Hi to All,

how to add like button in android application. when user click on like button if the user logged in, it should automatically publish the feeds in to all friends who are added in his face book account i create like button to get the from developer.face book and got source in html code and java script code.how to add this code in android application. please give me advice how integrate like button in my application.

Thanks in advance Akil

A: 

The easiest thing to connect to Facebook is to use their Android API. If you're looking for one snippet of code that will do all the things you mentioned, I'll have to disappoint you. You'll need to log in using this API, then you'll need to do a request with it in order to like a certain post/comment/picture/.... To do that, you'll need the Facebook id of the object you want to like.

It's really not as simple as you make it out to be.

Check the readme over at that github link for an introduction to the Facebook API.

And as McStretch pointed out, work on your accept rate! Read the StackOverflow FAQ if you're unfamiliar with how this place works.

benvd