Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added an easy access to the old rest api.

You should use graph instead, but if that does not have your methods use
this :-)
  • Loading branch information...
commit b65260a646efbf535866956ec19d5621876052f2 1 parent 59f19be
@thhermansen authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/devise_facebook_open_graph/facebook/session.rb
View
7 lib/devise_facebook_open_graph/facebook/session.rb
@@ -37,6 +37,13 @@ def graph
Koala::Facebook::GraphAPI.new(access_token)
end
+ #
+ # Gives access to query as user with old rest API
+ #
+ def rest_api
+ Koala::Facebook::RestAPI.new(access_token)
+ end
+
#
# Define reader methods for facebook session keys
Please sign in to comment.
Something went wrong with that request. Please try again.