Sometimes you may need to collect facebook user’s basic data for your website or application. Then you’ve to call graph api or legacy api or fql query to collect some specific data. This is a basic requirements for most of the fbconnect base website or facebook application.
For this reason, here I’m sharing the code, how could I collect those basic data and store them in database.
Before proceeding check the demo.
If you’re automatically logged in the site, then first logout and relogin and approve all the permissions. Now I’m showing the database table schema first
MySQL stored procedures are programs that are stored and can be executed on the MySQL server. You can call stored procedure from any application over a distributed network. Stored procedures provide a means of interacting in a prescribed way with the database without placing any additional traffic on the network. Here I’m describing a stored procedure that I used to create some sample data.