What have you found for these years?

2011-11-25

[ANN] rest-graph 2.0.1 released

p.s. a new version of rest-core and rest-more would be released soon, with a bunch of chagnes

rest-graph

by Cardinal Blue http://cardinalblue.com

Tutorial on setting up a sample Facebook application with Rails 3 and RestGraph could be found on samplergthree. Instead, if you’re an experienced Ruby programmer, you might also want to look at detailed documents.

DESCRIPTION:

A lightweight Facebook Graph API client

CHANGES:

rest-graph 2.0.1 – 2011-11-25

Bugs fixes back ported from rest-more

  • [RestGraph] Now we’re using POST in authorize! to exchange the access_token with the code instead of GET. If we’re using GET, we would run into a risk where a user might use the code to get other people’s access_token via the cache. Using POST would prevent this because POSTs are not cached.

  • [RestGraph::RailsUtil] Fixed a serious bug. The bug would jump up if you’re using :write_session or :write_cookies or :write_handler along with :auto_authorize, for example: rest_graph_setup(:auto_authorize => true, :write_session => true) The problem is that RestGraph::RailsUtil is not removing the invalid access_token stored in session or cookie, and yet it is considered authorized, making redirecting to Facebook and redirecting back doesn’t update the access_token. rest_graph_cleanup is introduced to remove all invalid access_tokens, which would get called once the user is redirected to Facebook, fixing this bug.

INSTALLATION:

gem install rest-graph

Or if you want development version, put this in Gemfile:

gem 'rest-graph', :git => 'git://github.com/cardinalblue/rest-graph.git',
                  :submodules => true

Or as a Rails2 plugin:

./script/plugin install git://github.com/cardinalblue/rest-graph.git

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0