Tank Auth with Twitter authentication & Facebook |
[eluser]imcl[/eluser]
got it -- after entering a unique username and email I can access my website without problems -- awesome code eric! many thanks for sharing. i wonder how we could streamline this a bit more, a la stack overflow login. so the idea would be to enter the site immediately after accepting the app -- as you mentioned a unique & temporary username would need to be generated. how would you retrieve the name/lastname for facebook or google? would this require changing the JS on the login page? PS: not sure if it's relevant, but I capitalized the first letters of the class in your controller & models.
[eluser]ericbae[/eluser]
Good stuff. Glad it's working well. Yeah I'm still trying to do something similar to Stackoverflow login system. Making up a username isn't a problem I think, but integrating with OpenID and also using Google's new oAuth authentication would be the next step. Let me know if you get that working! There's also a new LinkedIn authentication, which I think is quite simple to integrate. Maybe I'll get some spare time to work on those.
[eluser]imcl[/eluser]
hey eric, is there anywhere you prefer us to post suggestions to the code? not sure if you want it to be done on this thread. I am tweaking around and have found certain solutions, eg, to retrieve a user's picture, that may obviate some code in 'facebook_model.php'
[eluser]ericbae[/eluser]
Hey imcl, I geuss one way would be through GitHub page. We can always collaborate on a more detailed manner. Send me a private message then maybe we can get something started!
[eluser]german.zvonchuk[/eluser]
facebook_model have error. method: getPicture Code: function getPicture() file_get_contents - can’t get content because of url redirection. My question is how can I get redirection url (direct image url)?
[eluser]Mindtricks[/eluser]
Eric great stuff you're doing with tank auth. Is there an example admin panel available for this app? Just some small usermanagement panel like DX Auth has. I tried to merge the DX Auth adminpanel with your Tank Auth version, without luck. ;( (I am originally a designer, not a programmer).
[eluser]ericbae[/eluser]
Hey there @german.zvonchuk You can also get the user's public profile picture by going directly to the Facebook URL http://graph.facebook.com/' . $user_id . '/picture?type=large where you replace $user_id with the Facebook user ID you get from the API. Hope that helps. I found that as the easiest way to get the profile picture. @mindtricks, honestly, I haven't tried DX Auth so I'm not sure what its Admin interface looks like, but I can see it could be quite useful. Haven't got around to build the admin panel for Tank Auth though. Although now I think about it, it would be quite useful!
[eluser]Mindtricks[/eluser]
Quote:@mindtricks, honestly, I haven’t tried DX Auth so I’m not sure what its Admin interface looks like, but I can see it could be quite useful. Haven’t got around to build the admin panel for Tank Auth though. Although now I think about it, it would be quite useful! I would appreciate it very much. :-) If you're interested, I would be happy to help you with designing. PS 1: Maybe you could take a look at DX Auth's admin panel (its very basic i think) and although Tank Auth's code is seriously reworked, it's based on DX Auth. PS 2: And like you've got nothing else to do, could you also create a public profile page for Tank Auth's users?
[eluser]Noobigniter[/eluser]
Hello, i have a problem with twitter connect :/ Quote:A PHP Error was encountered Can you help me please ? Thank's
[eluser]RJ[/eluser]
Your request failed. Did you setup a twitter app account and modify the config? |
Welcome Guest, Not a member yet? Register Sign In |