lib/fb_graph/connections/subscriptions.rb in fb_graph-0.8.0 vs lib/fb_graph/connections/subscriptions.rb in fb_graph-1.0.0

- old
+ new

@@ -18,10 +18,11 @@ # # Subscriber have to setup PubSubHubbub subscriber endpoint. # See details at "Subscription Verification" in the Facebook API document. # ref) http://developers.facebook.com/docs/api/realtime # + # app = FbGraph::Application.new(APP_ID, :secret => APP_SECRET) # app.subscribe!( # :object => "user", # :fields => "name,email", # :callback_url => "http://fbgraphsample.heroku.com/subscription", # :verify_token => "Define by yourself" @@ -36,9 +37,10 @@ # # Delete all of your subscriptions. # If you specify an object parameter, it will only delete the corresponding subscription. # ref) http://developers.facebook.com/docs/api/realtime # + # app = FbGraph::Application.new(APP_ID, :secret => APP_SECRET) # app.unsubscribe!( # :object => "user" # ) # => Array of FbGraph::Subscriptions def unsubscribe!(options = {}) \ No newline at end of file