I am trying to implement social login on my website. I am requesting user-email from facebook API and want to pre-populate email field in one of the form with that email. How do I do it?
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
I found it. I am new to programming so asked such a newbie question. I passed a hidden input parameter in form for email and assigned the value of email that I received from facebook to the input parameter.
You can refer to this documentation here. After you get the email from the response, you can then store it into a server session, pass it to the next web page where your forms are located or anything you want to do with it