Jump to content

Link Php application to facebook


TrR

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.