Skip to content
Browse files

b up

  • Loading branch information...
1 parent d648ddb commit e410d6d66b003f7530cefd2475c35f0e2a8af4aa @nov committed Nov 15, 2012
Showing with 15 additions and 13 deletions.
  1. +12 −10 Gemfile.lock
  2. +2 −2 app/controllers/facebooks_controller.rb
  3. +1 −1 config/facebook.yml
  4. BIN public/images/.DS_Store
View
22 Gemfile.lock
@@ -33,29 +33,31 @@ GEM
builder (2.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
- fb_graph (2.4.7)
+ fb_graph (2.5.8)
httpclient (>= 2.2.0.2)
+ json
rack-oauth2 (>= 0.14.4)
tzinfo
- httpclient (2.2.4)
+ httpclient (2.3.0.1)
i18n (0.5.0)
- json (1.6.6)
+ json (1.7.5)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- mime-types (1.18)
+ mime-types (1.19)
+ multi_json (1.3.7)
polyglot (0.3.3)
rack (1.2.5)
rack-mount (0.6.14)
rack (>= 1.0.0)
- rack-oauth2 (0.14.4)
+ rack-oauth2 (1.0.0)
activesupport (>= 2.3)
attr_required (>= 0.0.5)
httpclient (>= 2.2.0.2)
i18n
- json (>= 1.4.3)
+ multi_json (>= 1.3.6)
rack (>= 1.1)
rack-test (0.5.7)
rack (>= 1.0)
@@ -72,15 +74,15 @@ GEM
activesupport (= 3.0.6)
rake (>= 0.8.7)
thor (~> 0.14.4)
- rake (0.9.2.2)
- sqlite3 (1.3.5)
+ rake (10.0.1)
+ sqlite3 (1.3.6)
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
thor (0.14.6)
- treetop (1.4.10)
+ treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.32)
+ tzinfo (0.3.35)
PLATFORMS
ruby
View
4 app/controllers/facebooks_controller.rb
@@ -14,15 +14,15 @@ def show
# handle Normal OAuth flow: start
def new
- client = Facebook.auth(callback_facebook_url).client
+ client = Facebook.auth(callback_facebook_url(hoge: "http://example.com")).client
redirect_to client.authorization_uri(
:scope => Facebook.config[:scope]
)
end
# handle Normal OAuth flow: callback
def create
- client = Facebook.auth(callback_facebook_url).client
+ client = Facebook.auth(callback_facebook_url(hoge: "http://example.com")).client
client.authorization_code = params[:code]
access_token = client.access_token! :client_auth_body
user = FbGraph::User.me(access_token).fetch
View
2 config/facebook.yml
@@ -1,7 +1,7 @@
development: &defaults
client_id: 117950878254050
client_secret: 939b5e2ef40b1e58cad08b4416f21337
- scope: user_about_me,friends_about_me,user_activities,friends_activities,user_birthday,friends_birthday,user_checkins,friends_checkins,user_education_history,friends_education_history,user_events,friends_events,user_groups,friends_groups,user_hometown,friends_hometown,user_interests,friends_interests,user_likes,friends_likes,user_location,friends_location,user_notes,friends_notes,user_online_presence,friends_online_presence,user_photo_video_tags,friends_photo_video_tags,user_photos,friends_photos,user_questions,friends_questions,user_relationships,friends_relationships,user_relationship_details,friends_relationship_details,user_religion_politics,friends_religion_politics,user_status,friends_status,user_videos,friends_videos,user_website,friends_website,user_work_history,friends_work_history,email,read_friendlists,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,ads_management,create_event,manage_friendlists,manage_notifications,offline_access,publish_checkins,publish_stream,rsvp_event,publish_actions,manage_pages,user_subscriptions #,friend_subscriptions
+ scope: user_about_me,friends_about_me,user_activities,friends_activities,user_birthday,friends_birthday,user_checkins,friends_checkins,user_education_history,friends_education_history,user_events,friends_events,user_groups,friends_groups,user_hometown,friends_hometown,user_interests,friends_interests,user_likes,friends_likes,user_location,friends_location,user_notes,friends_notes,user_online_presence,friends_online_presence,user_photo_video_tags,friends_photo_video_tags,user_photos,friends_photos,user_questions,friends_questions,user_relationships,friends_relationships,user_relationship_details,friends_relationship_details,user_religion_politics,friends_religion_politics,user_status,friends_status,user_videos,friends_videos,user_website,friends_website,user_work_history,friends_work_history,email,read_friendlists,read_insights,read_mailbox,read_requests,read_stream,xmpp_login,ads_management,create_event,manage_friendlists,manage_notifications,offline_access,publish_checkins,publish_stream,rsvp_event,publish_actions,manage_pages,user_subscriptions, #,friend_subscriptions
canvas_url: http://apps.facebook.com/fb-graph-sample-dev
test:
View
BIN public/images/.DS_Store
Binary file not shown.

0 comments on commit e410d6d

Please sign in to comment.
Something went wrong with that request. Please try again.