rails sorcery user_mapping possible values

55 views Asked by At

I'm using Sorcery gem in Rails and what to know what are the possible values user_info_mapping for facebook.

config.facebook.user_info_mapping = {}

Thanks!

1

There are 1 answers

1
D-side On BEST ANSWER

It expects a hash, where

  • keys are symbols of attributes in your User (or whatever) model (like :email)
  • values are names of attributes received from Facebook, documented here (like "name").

Example here.