Skip to content

Commit

Permalink
looking up user on success page
Browse files Browse the repository at this point in the history
  • Loading branch information
ScotterC committed Feb 26, 2012
1 parent 098875c commit bba490e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bba490e

Please sign in to comment.