i was wondering how i can catch a koala oauth exception (for example user password reset).
right now this is what i have / use so far:
rescue_from Koala::Facebook::APIError do
# redirect to fb auth dialog
end
but this catches all errors.. how i can do that with just oauth or only password reset?
EDIT:
found out a more explicit solution to the problem:
rescue_from Koala::Facebook::APIError do |exception|
if exception.fb_error_type == 190
# password reset - redirect to auth dialog
else
raise "Facebook Error: #{exception.fb_error_type}"
end
end
thanks in advance oliver