Ruby on rails 考拉::Facebook::AuthenticationError,用户已更改密码

Ruby on rails 考拉::Facebook::AuthenticationError,用户已更改密码,ruby-on-rails,devise,koala,Ruby On Rails,Devise,Koala,我正在使用Desive、omniauth和考拉 但有时(当然不经常)我会出现以下错误: Koala::Facebook::AuthenticationError:类型:OAutheException,代码:190,错误\子代码:460,消息:验证访问令牌时出错:由于用户更改了密码,会话已无效。[HTTP://www.info 根据该代码: graph = Koala::Facebook::API.new(params[:access_token]) @user = graph.get_objec

我正在使用Desive、omniauth和考拉

但有时(当然不经常)我会出现以下错误:

Koala::Facebook::AuthenticationError:类型:OAutheException,代码:190,错误\子代码:460,消息:验证访问令牌时出错:由于用户更改了密码,会话已无效。[HTTP://www.info

根据该代码:

graph = Koala::Facebook::API.new(params[:access_token])
@user = graph.get_object("me")
因此,第二行是导致异常的行。我的实现可能有什么问题?是否应该以某种特殊方式处理该错误?比如从facebook获得一个新的代币?还是我犯了这样的错误


谢谢

尝试续订oauth令牌。再检查一下。