Store Facebook data in MySQL - php

I have a front end page created and want to give a signup option to the user using Facebook. For that I've gone through the registration plugin of Facebook. I know the basics of SQL but don't know how to proceed so as to store the data of the user who sign up using Facebook.
How should I proceed about learning it.
Thanks in advance.

Lynda: (or similar) might fill in some of the web programming basics for you.

Related

Implement Facebook Login from ZERO

Hello and good day to everyone. I am new and I really need help about implementing facebook login on my website.
Let's start with what I understood.
1) I created a login page on my website (login.php), the code is the one found on fb developers page https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.3 (Quickstart section).
2) The login button works, when I click on it a pop up opens asking me to login on facebook and so on.
3) After I login i am redirected to logged.php (I added the redirect function)
4) Now I think I have to take the 1 data (username) used by that user with facebook and store it on my database just to create to him a profile on my website)
I have no idea how to do this last 4 step.
I am just familiar with PHP, (ASP), and easy java / css / mysql, so I am also having problems "writing" the script" but this doesn't matter now.
Can someone please tell me which code should I use on logged.php to take the username of the user (retrieved from facebook) ?
I just need to save it in a variable and then will handle with php, but the key point (my doubt) is how to take it from the facebook pop-up..
I hope I explained well my problem, I think is easy but I am not much familiar with any API (I just implemented API of youtube and the result is not that great) So any help may be appreciated.
Thanks again.

Multiple facebook accounts within a single website

I am developing a site in php. And in this site, I have to add multiple Facebook accounts but i have no idea about it. Please help me.
Thankyou
Its not that much difficult Facebook has built-in login-with-facebook facility.. you just need to ensure the SDK of facebook using your app you can make user record in you db and also can make them login verify and all the stuff a developer wanter here see this

socialengine integration with external php website

I am using social-engine as Social-networking website and at same time we are having another website done in php CodeIngiter MVC. Now we want to integrate Social-engine with our website. We are using Social-engine DB only for our php website.
When we log into our website it should be automatically logged into Social-engine also. I don't know where to start from? Is there anyway to do it?
Probably you should create custom login action (default login action is in application/modules/User/controllers/AuthController.php) and launch it using AJAX, but this way is not too good because you might get unpredictable problems with session or something else.
Better way is to create login action which will be launched by user. User will click button (like facebook or twitter login buttons) and launch custom login action using data from your php website, where he is already logged in.
I will suggest you to create some API for the socialengine login and also in your php website. That way , it shall help you.
For, our mobile native application for one client, We used that approach and its working fine.

PHP Openid selector try_auth file

I am trying to implement openid selector into my website, I wonder what is the try_auth file that I need for my openid selector to work?
All I want user to login into my website is using only their google account, so could anyone help me out? I have been doing alot of research and I didn't find a successful way of doing so. I am using PHP for my back end development.
Perhaps if someone could help explain how everything works that will be great, as well I didn't plan to use DB to store any user login. I know I have to have a session variable to check in every page whether user have login or not.
openid-selector is just a nice front-end for choosing which OpenID provider to use for signing in.
You also need a library that does the according back-end stuff. In your case this missing file is part of php-openid: https://github.com/openid/php-openid

Symfony2 TwitterBundle Security

I am trying to integrate TwitterBundle into my simple application to allow users to login via Twitter. I cannot find any documentation on how to integrate this into the security component to facilitate this. I have the Twitter button displaying fine, but when clicked it changes to connected, however I still remain an anonymous user.
Any tips or guidance will be much appreciated.
Thanks

Categories