Facebook やその他のソーシャル ネットワークでログインできる Spree アプリケーションがありますが、問題はログイン時にユーザーを注文に関連付けることができないことです。associate_user を試してみました。次のサンプルのように、カートは常に空です。
これがomniauthcallbackの私のコードです
if current_order
current_user = spree_current_user || @user
current_order.associate_user!(current_user)
session[:guest_token] = nil
end