我想在两个选项中拆分范围:1. 用于 offline_access、email、user_relationships 2. 用于 offline_access、email、user_relationships 和 xmpp_login
如何添加两个范围并在它们之间切换?
我想在两个选项中拆分范围:1. 用于 offline_access、email、user_relationships 2. 用于 offline_access、email、user_relationships 和 xmpp_login
如何添加两个范围并在它们之间切换?
我已经解决了
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