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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -