0
我的问题是在Facebook的回调URL。我在Rails 3.0上使用fbgraph gem。错误与Facebook访问令牌
我要求我的选项卡应用程序的扩展权限。所以在回调函数中,我等待代码参数和access_token。
我从fbgraph官方GIT存储库中提取此代码。
def authorize
begin
@auth.client.authorization_code = params[:code]
#In access_token line should return me access__token but throw a error message (see below)
access_token = @auth.client.access_token! # => Rack::OAuth2::AccessToken
@facebook_user = FbGraph::User.me(access_token).fetch # => FbGraph::User
#MORE CODE WITHOUT IMPORTANCE
redirect_to :controller => "dashboard", :action => "index"
rescue Exception => e
logger.info(e.message)
end
end
抛出此错误消息:
架:: OAuth的客户:: ::错误#=> @status = 400,消息=>缺少重定向URI
请我急需帮助。对不起,并提前感谢
非常感谢你 – maxiperez