ruby on rails - Save access_token -
i using facebooker2 uses mogli facebook authentication , save created access_token database. saving access_token created cookie save database well. possible? can provide example?
thanks.
facebooker2 provides method current_facebook_client, can use controller obtain access_token , save database (e.g.: fb_access_token field of user model):
at = current_facebook_client.access_token current_user.update_attribute(:fb_access_token, at)
Comments
Post a Comment