kenzie / facebook_events

Fetch an array of events from the Facebook Graph by id (user or page)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FacebookEvents

FacebookEvents pulls Event data from the Facebook graph for a particular user or page id. Events are returned as an array of hashes.

Setup

Register your App on Facebook

Define your constants for Facebook APP ID (API Key) and APP Secret:

FacebookEvents::FACEBOOK_APP_ID = '###'
FacebookEvents::FACEBOOK_SECRET = '###'

Use

events = FacebookEvents.list(facebook_id)

Returns an array of hashes – with attributes for id, name, start_time, end_time, location, description, updated_time.

Dependencies

Requires the MiniFB gem.

About

Fetch an array of events from the Facebook Graph by id (user or page)


Languages

Language:Ruby 100.0%