README.rdoc in rest-graph-1.1.0 vs README.rdoc in rest-graph-1.1.1
- old
+ new
@@ -1,6 +1,6 @@
-= rest-graph 1.1.0
+= rest-graph 1.1.1
by Cardinal Blue ( http://cardinalblue.com )
== LINKS:
* {github}[http://github.com/cardinalblue/rest-graph]
@@ -74,9 +74,20 @@
# manually load config
require 'rest-graph/load_config'
RestGraph::LoadConfig.load_config!('path/to/rest-graph.yaml', 'env')
# see test/config/rest-graph.yaml for an example for config
+
+ # oauth utilites:
+ # https://graph.facebook.com/oauth/authorize?client_id=...&
+ RestGraph.new.authorize_url(:redirect_uri => '...')
+
+ # get access token by:
+ # https://graph.facebook.com/oauth/access_token?code=...&
+ rg = RestGraph.new
+ rg.authorize!(:redirect_uri => '...', :code => 'zzz')
+ rg.access_token # your access_token is now available
+ rg.data['expires'] # other values as well
== REQUIREMENTS:
* tested with MRI 1.8.7 and 1.9.1
* gem install rest-client