Welcome Guest, Not a member yet? Register   Sign In
Tank Auth with Facebook Connect Authentication
#41

[eluser]technocrat[/eluser]
Thanks for sharing the script, Eric Bae!

I tried your demo on naturish.com, login seems to work perfectly. On logout, it goes to the facebook mobile (m.facebook.com website!

Could anyone here let me know if this is a minor issue?

Many thanks.
#42

[eluser]RJ[/eluser]
I would say major. This will take your visitors away from the site and put them on facebook. Granted, they're logging out anyway, but do you really want to redirect to FB?

I use this custom log out method:
Code:
/**
     * Logout user
     *
     * @return void
     */
    function logout()
    {    
                $this->session->unset_userdata('twitter_id');
                $this->session->unset_userdata('facebook_id');
                $this->session->unset_userdata('twitter_oauth_tokens');
                $this->tank_auth->logout();

                $this->lang->load('auth/tank_auth');
                $this->session->set_flashdata('status', $this->lang->line('auth_message_logged_out'));
                redirect('YOUR_URI', 'refresh');
    }

This takes the tank auth log out one step further to ensure all session data is unset. Note: I just threw in the session flashdata line, we use a custom notification library, this should work for you.
#43

[eluser]technocrat[/eluser]
Thank you very much, bullspit!
#44

[eluser]imcl[/eluser]
hey there friends, I've been using @eric's library for a while now and it's working great.

one of the early posts of this thread asks how to use this code to allow for posting to user's FB wall.

erics response:

Code:
...
$url = “https://graph.facebook.com/FACEBOOK_USER_ID/feed”
$attachment = array(“access_token” => get the access token, “name”=>“hello world”, “link”=>“http://myapp.com”, “description”=>“My first post to Facebook wall”);

You now have the URL and the data that you are going to post to your wall. You can then use CURL to post this. Hope that helps!

I really have no idea how to code the CURL after defining the variables above.

And how do I get the access token?

Can anyone give a hint how to post a message to my wall on FB?
#45

[eluser]Ted S[/eluser]
[quote author="imcl" date="1308080611"]
I really have no idea how to code the CURL after defining the variables above.

And how do I get the access token?

Can anyone give a hint how to post a message to my wall on FB?[/quote]

What are you trying to do? Popup a post to a user's wall on a certain page? After they register? Somewhere else?

Access Tokens are only used for a few legacy parts of the API now. Instead we use the Graph API generally with the PHP SDK. I can show you some sample code if you can explain a little more...
#46

[eluser]ericbae[/eluser]
Hi guys.

I've released a new version of my extension at

https://github.com/ericbae/XTA2

I think you'll find this version more complete and robust. There is also a new demo page at

http://xta2.ericbae.com

I would strongly suggest using XTA2, as I don't think I will be looking after the first version.

Enjoy!
#47

[eluser]dUspan[/eluser]
nice one ericbae Big Grin thumbs up.
#48

[eluser]Ted S[/eluser]
[quote author="ericbae" date="1308766388"]Hi guys.

I've released a new version of my extension at

https://github.com/ericbae/XTA2

I think you'll find this version more complete and robust. There is also a new demo page at

http://xta2.ericbae.com

I would strongly suggest using XTA2, as I don't think I will be looking after the first version.

Enjoy![/quote]

Great to see that you're developing this more!

I know that many of us, myself included, have made a number of extensions to your original version that will need to be ported.

Can you give a quick overview of the changes [is it a codebase rebuild, new features or perhaps more integrations]?

Thanks!
#49

[eluser]RJ[/eluser]
Thanks ericbae -- I'm with Ted, do you have a changelog and is it possible to simple update/add the library and associated files rather than an entire CI build to the repo?

Thanks again.
#50

[eluser]Unknown[/eluser]
This looks like a great addition to Tank Auth.

However, I am a bit hesitant to use it, because it is quite unclear how much it has modified CI and Tank Auth. Perhaps we can help ericbae turn this into a plugin for tank auth that does not require modifications to existing files.

I am not very experienced, but would be happy to follow someone's lead and help out.




Theme © iAndrew 2016 - Forum software by © MyBB