views:

190

answers:

2

I'm developing this Facebook Application and I was wondering if it's possible (and how) to programmatically, through the Facebook PHP Graph API, press some 'Like' button on some page?

Of course, this is optional on my application... I'm still not ready to really explain what application I'm doing, but it would be interesting to code such a feature.

Is it possible somehow?

+3  A: 

By your description it sounds like you're trying to get a user to like something without the users knowingly clicking a like-button. This sort of interaction is not condoned by Facebook, I think. There are various black-hatty ways to accomplish this though, one fairly elaborate one is descriped here: http://www.liquidrhymes.com/2010/08/25/smoking-hot-bartender-is-some-smoking-hot-facebook-spam/

UPDATE Sorry, I might be wrong. If you get stream_publish extended permissions from the user, you might be able to like posts on their behalf by doing a POST to /POST_ID/likes. See Publishing to Facebook in http://developers.facebook.com/docs/api

friism
Yes, it's for a "auto-like" when some conditions are met, all this is configurable and the user can completely disable it if he wants. I don't want to like a post within Facebook though, I want to like something on a different page, if you must know, I'm talking about IMDb movies.
Nazgulled
You're right, the graph-method is for for feed-posts only.
friism
look at this thread: http://forum.developers.facebook.net/viewtopic.php?pid=227438
Denis
A: 

You cannot do this. Facebok wont let you do a POST to /POST_ID/likes, you can only do a get request to retrieve their likes. What you are trying to do is a violation of facebook's TOS. I would suggest just adding a like button and "forcing" them to like before they continue with your application. However, in my opinion even that is kind of silly because they can instantly go unlike it after they have used your application.

Nathan Totten
The idea is not to like my application.
Nazgulled