TrR Posted February 7, 2014 Share Posted February 7, 2014 Hi everyone! I'm new here. I have a problem. I created an application with PHP, MySQL and now i want to link that application with facebook and all users that will use my application, their data have to go into my database. Please can someone tell me step by step what i should do because i never did this before. Sorry if this question isn't for this forum or for this part of forum. Quote Link to comment https://forums.phpfreaks.com/topic/286024-link-php-application-to-facebook/ Share on other sites More sharing options...
denno020 Posted February 7, 2014 Share Posted February 7, 2014 You need to look into adding a 'Login with Facebook' link to your site (php application). To do this, you will need to create an application on Facebook, which will give you access keys to talk between Facebook and your php application. Then using the Facebook php class, you can interface between a user who clicks on the 'Login with Facebook' and your application, grabbing their basic public information, as well as anything that you have specifically requested when setting permissions for your Facebook application. Hopefully that gets you heading in the right direction. Denno Quote Link to comment https://forums.phpfreaks.com/topic/286024-link-php-application-to-facebook/#findComment-1468109 Share on other sites More sharing options...
TrR Posted February 8, 2014 Author Share Posted February 8, 2014 The 'Login with Facebook' of course i should add to the index.php but the other code that inserts user's data from facebook into database, should i implement only in index.php or in other files that has input too (for example i have a file that a user should rate an article in rate.php and another file that user should rate one or more interest point). Thank you for your help! Quote Link to comment https://forums.phpfreaks.com/topic/286024-link-php-application-to-facebook/#findComment-1468178 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.