0

How do I create url_like using graph api?

This URL shows like count that (http://example.com) https://graph.facebook.com/http://example.com

{
   "id": "http://example.com",
   "shares": 131086
}

but instead of retrieving the count, I'd like to create a like using the Facebook Graph API.

Aldwoni
  • 1,168
  • 10
  • 24
  • How is your question different than http://stackoverflow.com/questions/3061054/like-a-page-using-facebook-graph-api? – jacobq Jan 23 '13 at 15:58

1 Answers1

0

I believe what you are trying to do is described here in the documentation. The short version is:

url -F 'access_token=...' \
     https://graph.facebook.com/313449204401/likes

Note: To create rather than retrieve the likes, the request needs to be an HTTP POST rather than GET since this service has a RESTful architecture.

jacobq
  • 11,209
  • 4
  • 40
  • 71