hoangweb
8/27/2017 - 3:00 AM

facebook-graph API

facebook-graph API

[Personal]
GET graph.facebook.com/me?fields=albums.limit(5),posts.limit(5)
GET graph.facebook.com/me?fields=albums.limit(5){name, photos.limit(2)},posts.limit(5)

# extend it again by retrieving the name of each photo, the picture URL, and the people tagged
GET graph.facebook.com
  /me?
    fields=albums.limit(5){name, photos.limit(2){name, picture, tags.limit(2)}},posts.limit(5)

# update
POST graph.facebook.com
  /{node-id}?
    {updated-field}={new-value}&
    access_token={access-token}

# DELETE
# can specific method via param with POST
POST graph.facebook.com
  /{comment-id}?
    method=delete

# search
GET graph.facebook.com
  /search?
    q=coffee&
    type=place&
    center=37.76,-122.427&
    distance=1000
    
[Feeds]
# publish need
POST graph.facebook.com
  /126577551217199/feed?
    message=Hello&
    fields=created_time,from,id,message,permalink_url