Take the 2-minute tour ×

Does anybody know how to do a Like of a facebook page/personn by code ? Is it possible with the graph api ? how ? Can you give code example ?

share|improve this question

3 Answers 3

up vote 0 down vote accepted

@user370003, Would you mind providing more insight? The API does not have anything for this and your "Answer" is not much help as it stands.

@Fabien, you can use a webview but the problem is if the user needs to login. you can also use:


That way it will launch a web browser and you can just populate url with the string you would like to go to.

share|improve this answer

There is no like feature on Facebook Graph API.

You can find the Like Button Reference Guide on Facebook Developers Page.

share|improve this answer

I found a code example in the facebook android sdk examples in github.

I'm using this in my Android widget "Facez" and it works fine.

share|improve this answer
This is not a solution. Please provide the code and how you integrate this in your application. –  philipp Apr 10 '12 at 22:23

Your Answer


