-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME~
67 lines (20 loc) · 1.48 KB
/
README~
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#retrieve a public event
FbGraph::Event.fetch('291316194251928')
#attend to a public event
e.attending!(User.last.access_token)
user = FbGraph::User.me(User.last.access_token)
rails generate model Event user:references fb_id:string name:string description:string updated_time:time start_time:time end_time:time location:string
rails generate controller home index
rails generate model User name:string location:string positionInGame:string access_token:string
rails generate model FacebookAccount fb_id:string name:string user:references
rails generate model FacebookNode user:references facebook_account:references
rails generate model Video name:string locked:boolean
rails generate model VideoUnlock video:references user:references
# rails generate model Event fb_event_id:string user:references
# rails generate model EventAnswer event:references user:references attend:bool maybe:bool
Do not invite users to event : we can directly force them to answer if they are going to attend an event.
=> The good point is that he user will receive updates on the event if he answers "attend" or "maybe"
POST https://graph.facebook.com/+EVENT_ID+/invited/+USER_ID
Invite a user to an event. Returns true if the request is successful.
invite a user to an event
https://api.facebook.com/method/events.invite?eid=683618123&uids=683618123&access_token=AAADF30WI0dsBAIZB792U0OUXeVBvq0Kr07fypG5VcI6Evhzgr8LgTwjs5OFrw2H6i7LKzvqjsHWiv8rZAsOuPocdc9mEf7xiff8xftwgZDZD&format=json