Skip to content

jp/facebook-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



#retrieve a public event
FbGraph::Event.fetch('291316194251928')
#attend to a public event
e.attending!(:access_token => 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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published