0

我想在两个选项中拆分范围:1. 用于 offline_access、email、user_relationships 2. 用于 offline_access、email、user_relationships 和 xmpp_login

如何添加两个范围并在它们之间切换?

4

1 回答 1

1

我已经解决了

config.omniauth :facebook, Setting.for(:facebook_id), Setting.for(:facebook_secret), scope: 'offline_access,email,user_relationships'
config.omniauth :facebook_extended, Setting.for(:facebook_id), Setting.for(:facebook_secret), scope: 'offline_access,email,user_relationships,xmpp_login', name: :facebook_extended, strategy_class: OmniAuth::Strategies::Facebook
于 2012-11-16T21:41:01.333 回答