Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPTIONAL FEATURE] Facebook login/register ? #36

Closed
racha opened this issue Mar 14, 2013 · 22 comments
Closed

[OPTIONAL FEATURE] Facebook login/register ? #36

racha opened this issue Mar 14, 2013 · 22 comments

Comments

@racha
Copy link

racha commented Mar 14, 2013

Is it possible to have Facebook login and register implemented ? I was looking at this my self but not much success ... I'm trying to make some kind of social website this script is simple and good, but i would like to connect it with Facebook. Also uploading/grabbing avatars from Facebook would be nice as well if its possible.

@panique
Copy link
Owner

panique commented Mar 14, 2013

Good point! Thanks man, I'll have a look on that. Big new version with massive changes coming up...

@ghost
Copy link

ghost commented Mar 25, 2013

Plz make simple a way to get them disable or completely remove. For my use, I d'ont want FB or google looking at every page request.

@desynergy
Copy link

Yes, this should be an option or a plugin that can be disabled. As Facebook is showing off more and more what you do on your wall, this option is getting less and less popular.

@GrahamCampbell
Copy link
Contributor

I don't think this is a good idea for the advanced or basic packages, because the idea is that they are quite small and simple. It may be an idea to make another version based from the advanced version with this functionality. If you do ever add it, Google sign in would be good too.

@panique
Copy link
Owner

panique commented May 28, 2013

I Agree!! All "external" stuff that relies on "foreign code" should be optional and handled within a special version of the script.

@panique
Copy link
Owner

panique commented May 28, 2013

Btw: Facebook-, Google+ and Twitter-Logins should be possible! Tumblr/Pinterest/etc. are interesting too, but have not enough market share afaik...

@panique
Copy link
Owner

panique commented Aug 20, 2013

REQUEST: is there anybody out there who is experienced with building a facebook based login ?

@racha
Copy link
Author

racha commented Aug 20, 2013

This is for CodeIgniter, but maybe it helps http://www.youtube.com/watch?v=MxSIKGWxztA

@racha racha closed this as completed Aug 20, 2013
@racha racha reopened this Aug 20, 2013
@panique
Copy link
Owner

panique commented Aug 20, 2013

Facebook recommends the login via JavaScript, but here's the PHP SDK guideline: https://developers.facebook.com/docs/reference/php/ and the PHP SDK code/demo: https://github.com/facebook/facebook-php-sdk

@panique
Copy link
Owner

panique commented Aug 20, 2013

Good tutorial on how to use the PHP Facebook Login: http://www.youtube.com/watch?v=yfTEcaTJjco
Another good tutorial: http://www.youtube.com/watch?v=8383iyKYC1g

@MarcosBL
Copy link

Panique, the simplest i have ever tried is Opauth, i'm against mixin a great example of pure login/logout with the wheel reinvent of Social Login, with an external project. But maybe just including Opauth as a reference with an example of use could be of help.

Just check it out, it comes already loaded with more than a dozen connectors: https://github.com/opauth/opauth

@GrahamCampbell
Copy link
Contributor

That looks really cool @MarcosBL.

@panique
Copy link
Owner

panique commented Aug 25, 2013

Let's put this into Milestone 2 of the project!

@panique
Copy link
Owner

panique commented Aug 25, 2013

The Opauth-technique mentioned by @MarcosBL (that can be integrated into all major PHP framework and works with all major social platforms !!) looks extremely nice, we should try this out (in Milestone2)

@panique
Copy link
Owner

panique commented Dec 2, 2013

Good news! I've implemented the Facebook-login in the upcoming Milestone 2 of the 4-full version! It uses the official facebook SDK (for now, maybe we change to OpAuth or similar) and loads everything via composer. The new version also has a new file structure, lot's of improvments, much cleaner code and and and.

The facebook login works perfectly together with "normal" logins, and the both login possibility check each other. In general I think we have a great new feature here. Switching to OpAuth and/or added other login services should be easy.

Native and FB-users share one users table, as clean and simple as possible.

I'll push this into the develop branch in a few days.

@Dominic28
Copy link
Contributor

Sounds very nice :)
I'm looking forward to it.

@const-g
Copy link

const-g commented Dec 2, 2013

Great, thank you, I planned to work on this for my project this week! Good timing. Will the facebook-login will allow us to fetch friend list too?

@panique
Copy link
Owner

panique commented Dec 2, 2013

@Cog-g The focus here is clearly the login process, so there won't be such features (they don't make sense in the context of a login script). BUT: The login process request an array of user data from Facebook, so it would be easily possible for you to built this on you own. ;)

@mohamedpsx
Copy link

it will be cool for public & social projects by linking all accounts to facebook , but in the other hand or in a professional project you can't force some users to have facebook to login and register so .. to me it depends on how what for you are going to use the script .. but it's cool to have it as a module for this script :D

@panique
Copy link
Owner

panique commented Dec 2, 2013

@mohamedpsx What do you mean by "linking all accounts to facebook" ? The login via facebook is always just an option, and the created account is nearly the same as when providing username, passwrod and email. Facebook-login just means that users register with their facebook-data and can login with one click (when also logged in on facebook). It's much more simple than you might think. ;)

@mohamedpsx
Copy link

@panique Yes i know it's simple, but what i wanted to say is from a user side, it's better to have access to a platform or a website via Facebook login (when it happens to have a Facebook account) rather then filling the register form, verifying the mail etc ... , it's fast & simple ... so yes it will really make a good option for your script :D , and by linking i do not mean the technical side of things or how it really works but again as user point of view Facebook login is like the button to rule them all especially when you are always connected to Facebook ( no more filling,no more passwords,no more mail verification ...) it just replaced what browsers and many platforms wanted to do before ...

@panique
Copy link
Owner

panique commented Dec 4, 2013

Done in develop (only in 4-full-framework version, for other version it would be too much)

@panique panique closed this as completed Dec 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants