I need some serious help here ... So I'm developing a resume builder using Facebook's API. I need to save users FB data (email, name, current location, education and work history) into my database and I'm struggling to say the least. That being said, I have a grasp on some of the basics on how to use facebook's api via their PHP SDK as well as how to link it to mysql database but I'm confused on how to effectively use it within the context I need. So here's the basic flow of the site: User visits site homepage Then clicks on fb login button Site asks user for permission to access their facebook data User clicks on allow button to grant access Site saves data in MySQL database and displays on site in a basic resume layout Here is my question: Once user grants permission to their data how do I redirect them to their resume that has been created using their info? I have attempted to code this over the last few weeks without much luck so I'm just looking to see other approaches. Also, some will read this and think that this not a new concept/idea (which would be correct) but I haven't given the core concept of what I'm attempting to do with this site (intentionally). But to get to that portion of this project I need to complete this part so I ask that people not focus on how similar this idea is to others out there because it's more of the foundation than the house of the project (if anyone gets that analogy lol).
I Think when user already login, 1. get their Facebook User ID usually it's in number. 2. Save the FAcebook User ID to your mysql database 3. You need to find the Facebook User ID from your mysql database to recognize the user ID already in your database or not. 4. And use the Facebook User ID as User Identity As your primary ID in your database i hope it's little bit help