Class: Raicebook::FbEvents
Class Method Summary collapse
-
.all(options = {}) ⇒ Object
You can give an app_id or the current logged user “me” example : FbEvent.all(:id => “me”), if you would like the events from the current user you must give an active access token The default value of app_id is your application_id and for token it is the app token To use this in your app: include Raicebook and then in index action for example: so in the view you can do a each loop on the events.
Methods inherited from Base
Class Method Details
.all(options = {}) ⇒ Object
You can give an app_id or the current logged user “me” example : FbEvent.all(:id => “me”), if you would like the events from the current user you must give an active access token The default value of app_id is your application_id and for token it is the app token To use this in your app: include Raicebook and then in index action for example: so in the view you can do a each loop on the events
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/raicebook/fb_events.rb', line 15 def self.all(={}) # default value for facebook app = { :id => Facebook::APP_ID, :token => get_app_acc_token } = .merge() graph = Koala::Facebook::GraphAPI.new([:token]) graph.get_connections([:id], "feed") end |