My site (http://sukabumi-marketplace.com) using facebook graph for user login. I haven’t maintenance it for the last 2 months. when I try to login few days ago it return an error because the username from Facebook graph API was empty.
I googled why this is happened. and got that facebook has depecrated the /me/username API. alternatively we can use email as username. but I resist to use facebook username as my application users username. so I do some trick.. seems stupid but it works.
This post is a reply from someone who emailed me, he asked me how to save the user data that already login to our site using facebook graph API.
after we create a login scheme using facebook and oauth2 gem, we need to save the facebook user data to our databases, so.. how to save it into the database?
it’s very easy and simple, when we get a callback from the facebook graph API and save the user data in session like this:
I try to run “bundle install” (bundler gem) and in the middle of the installation process i got my hardisk space is full. so i cut the process and remove some data then try to install again, so i run the “bundle install” again and get error like this :