Welcome Guest, Not a member yet? Register   Sign In
Tank Auth with Twitter authentication & Facebook
#1

[eluser]ericbae[/eluser]
Hello everyone.

I posted a few weeks ago about integrating Tank Auth with Facebook. Its post is here.

http://ellislab.com/forums/viewthread/184271/

I also made a "semi-promise" (if there is such a thing) to integrate with Twitter. I wanted to live up to my word, so I went and finished this thing, which is now available at the GitHub page.

https://github.com/ericbae/Tank-Auth---3...on-Project

This project uses Elliot Haughin's awesome, latest CI + Twitter library. I didn't have to change too much. But I did move around the configuration files so that it merges nicely with previous settings I did with Facebook.

There is also a WIKI page on GitHub, which should get you started nicely. And finally, you can test the whole thing out at "http://www.naturish.com". I'll try to move on to "Google" authentication next. Smile
#2

[eluser]pabloheim[/eluser]
awesome! im going to try it!.

can a user associate both faceebook and twitter accounts, so he can access the site from three ways?
#3

[eluser]ericbae[/eluser]
yo pablo. it's you again. Smile haha.

As far as I can tell, you can technically register with all three (tank auth, FB, Twitter). However, I followed the Tank Auth model where user name and email must be unique.
#4

[eluser]andjules[/eluser]
Facebook = working. Awesome!
Twitter = getting lots of errors after clicking the Twitter button
"Trying to get property of non-object", lines 205, 389, 405
Not sure if I was supposed to get a popup or other redirect to Twitter but it never got that far.

Double-checked my config file... everything seems good
#5

[eluser]andjules[/eluser]
[quote author="ericbae" date="1301893335"]As far as I can tell, you can technically register with all three (tank auth, FB, Twitter)[/quote]
I just want to be clear: in this case (assuming three unique emails), you'd have created 3 users?
#6

[eluser]ericbae[/eluser]
@andjules

yes that's correct. They will be 3 separate users. The motive was to get tank auth work with other 3rd party plugins. As far as "connecting" tank auth, twitter and facebook accounts, I haven't thought that far obviously. Smile But I imagine it wouldn't be too tough to extend it in such way!
#7

[eluser]wakey[/eluser]
[quote author="andjules" date="1302402929"]Facebook = working. Awesome!
Twitter = getting lots of errors after clicking the Twitter button
"Trying to get property of non-object", lines 205, 389, 405
Not sure if I was supposed to get a popup or other redirect to Twitter but it never got that far.

Double-checked my config file... everything seems good[/quote]

Hi,
did you find a solution to the Twitter problem? Having the same problem here.

Cheers.
#8

[eluser]ericbae[/eluser]
Hm this is a little bit strange. Since it was working previously. I'll look into it!
#9

[eluser]ericbae[/eluser]
Ok. Firstly, I missed the @andjules' first message about the Twitter error, so I had no idea there was a bug.

Anyway, there was a silly typo between the Twitter library "tweet" compared to my variable in the config file "twitter".

I fixed it and have uploaded to GitHub. The demo page should also work properly now on (http://www.naturish.com).
#10

[eluser]wakey[/eluser]
Please ignore - my mistake, code works perfectly now, see below...




Theme © iAndrew 2016 - Forum software by © MyBB