This topic is locked
[SOLVED]

 Facebook + Other site as login for PHPRunner App!

8/18/2010 14:21:09
PHPRunner General questions
F
FunkDaddy author

I came across this company ( http://wiki.gigya.com/001_Authentication_Quick_start ) today and immediately started looking into the idea of using their API for my own PHPRunner web apps!
I wanted to share this in our forums so we can pool our talents together and figure out a way to implement this in our PHPRunner web apps.
As soon as I am able to create a successful connection I will share with everyone else... meanwhile, if anyone feels like contributing via this post please share with the rest of us.
I am working on another project now, so this isn't a high-priority for me, nonetheless I will give it a try when time allows. This would be a really neat feature to add to web apps.
If Sergey, Jane, Ann and xlinesoft crew feel like tackling this as well it would be great!!!
Cheers,

Sergey Kornilov admin 8/19/2010

FunkDaddy,
just wondering - what kind of functionality you expect from Facebook login.
Using Gigia or some other widget you can allow user to logon using Facebook login. You can get their name, some kind of ID etc. What's next?
What permissions you want to assign to this user? How do you distinguish between first time user and returning user?

F
FunkDaddy author 8/21/2010

My original thoughts are to allow for new user registrations via the facebook login... the unique user key passed from facebook or other site could be create a new user in the a users type table (maybe concatenated with different category values for each of the different sites).
I simply view this as lowering the barrier to entry for web applications.., meaning one less online account for a prospective user to have to remember a username and password to access it.

Sergey Kornilov admin 8/23/2010

This should be a pretty straightforward task. Take a look at step 2 at http://wiki.gigya.com/001_Authentication_Quick_start
You can specify login.php as a return URL and implement BeforeProcess event. In this event check if variables $_GET["loginProvider"] and $_GET["loginProviderUID"] are populated. If yes, check if this user exists already. You'll need to have loginProvider and loginProviderUID field in login table.
If user doesn't exist in your database create a new record populating those fields. Then populate security related session variables like $_SESSION["UserID"] and redirect user to one of pages of your app.