I am not asking to solve my problem but yes to give me some hints on what should I look for or where should I focus in, in order to get this accomplished.
The problem is my website has his own registration system and I don’t know how to join it with facebook’s. Visitors should be able to login in both ways, but I have no idea how to do it.
I have followed this guide: http://25labs.com/tutorial-integrate-facebook-connect-to-your-website-using-php-sdk-v-3-x-x-which-uses-graph-api/
But it gives me error in my site, and I can’t login using facebook. Any advise on this.
I don’t know what I should do yet. My website is written in php.
This is the page where I have tried it:
http://www.dtraffic.biz/demo/index.php
The tutorial author say I should look the error_log to see which is the problem but when I look this through my cpanel account nothing appears there.
Here some tips.
You have to add a new field in your userlist database. Example:
And then implement Facebook PHP SDK, you can follow Facebook tutorial.
When an user logins using Facebook, you can ask to create a new account or to link his Facebook account to his existing account in your web, in both cases, you have to fill the database facebook-id with his Facebook id (You can get that info with Facebook graph API after authentication)
Now, each time someone logs in using Facebook, you can check if his Facebook id is linked to any account in your database.
Sorry for my bad english :-/
If the error you get is error 500, you have some code wrong written, or maybe Facebook API is throwing an error too,
try catching it andprint_fit so you know what’s happening.Another tip: Facebook exceptions are called
FacebookApiExceptioninstead ofException