-
Notifications
You must be signed in to change notification settings - Fork 5
/
fb-api
45 lines (32 loc) · 882 Bytes
/
fb-api
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
create using post method
read, get using get method
on facebook api using 3 concepts are:
- object like as person (me), user_id, post_id, photo_id, whatever meaning id
- fields
- edge:
- Album
- Comment
- Event
- Life Event
- Link
- Live Video
- Note
- Official Event
- Open Graph Action
- Open Graph Object
- Photo
- Post
- Status
- Thread
- User
- Video
with form object/edge/?fields={some_fields}
create comment:
id/comments?message="Content of comment"
create post
id/feed/?message="Content of post"
create react
id/reactions?type= {NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL}
request some person's feed
me/friends/object_id?fields=feed.since(time)
on day (timestamp) ? -7 hours : +17 hours and