Skip to content
Browse files

looking up user on success page

  • Loading branch information...
1 parent 098875c commit bba490e0046085c28eead91008832625a3d24b2f @ScotterC committed Feb 26, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 app.rb
View
5 app.rb
@@ -170,12 +170,11 @@ class App < Sinatra::Base
end
get '/success' do
- begin
- user = User.find_by_uid(params[:uid])
+ user = User.find_by_uid(params[:uid])
+ if user && user.token
user = FbGraph::User.me(user.token)
user = user.fetch
@facebook_pic = user.picture + '?type=large'
- rescue
end
erb :success
end

0 comments on commit bba490e

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