-
Notifications
You must be signed in to change notification settings - Fork 86
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
Never says logged in. #12
Comments
I'm having the exactly same problem. |
I'm also having this issue. Facebook recognizes that I'm logged in (since it shows that the app is "connected") but the Facebook Library never returns for this: !$this->facebook->logged_in() I'm also having the exact same issue with @elliothaughin 's Twitter Library for CodeIgniter and since he hasn't supported the Libraries at all I've had to resort to getting Twitter involved. It turns out both of these Libraries are using an older OAuth spec. Once we get the Twitter Library issue resolved I'll try to focus some time on getting this Library up-to-date as well. |
Also having this issue. It always says "login" even though my FB info is showing. I'm on a LAMP stack with everything up to date. |
Same issue here. I thought perhaps I needed to enable $config['enable_query_strings'] = TRUE; but that didn't help. |
Use this guide instead: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/ There's really no reason to use Elliot's package anymore. That guide takes all of 5 mins and works perfectly. |
@GoLevel I have done the same thing. And it works great. |
I'm using codeigniter for a facebook app and not only for sign on. Additionally I wanted to have my stuff consistent and use the resources provided by codeIgniter,. |
@mastacheata Does your Library have any advantages over the workflow that Danny Herran suggests? |
@cdevroe The facebook php sdk handles sessions seperately from codeigniter and makes use of the PHP superglobals, but from what the Codeigniter Documentation says the framework might unset those variables under certain conditions to make you access them via builtin codeigniter functions only. If you don't need / want this, you're good to go with Danny Herrons workflow using the facebook provided sdk. |
@mastacheata It sounds nice, I don't see it on GitHub, do you have it somewhere else? |
It's in my personal fork of elliot's codeigniter-facebook: This is however not done yet. It works but I have not implemented the error handling completely. For now it just throws empty FacebookException. |
@GoLevel's pointer works indeed. Too bad elliot's is broken still... |
All you really have to do is grab the original facebook php sdk and replace the native session with a codeigniter session... |
The problem AFAICT is that the token stored in the session (facebookSession) is not saved. So when the user is redirected to the function which called login or elsewhere, the library is reloaded and a new facebookSession object is created. SOLVED: The problem was that CI used an md5 check to verify the authenticity of the cookie and that was failing (I don't know why). |
@millhacker it works for me! thanks a lot! |
I am using the latest codeigniter and latest of codeigniter-facebook and I have my app setup but when I click login it goes to facebook then back to my site and still has the login link. I saw a similair issue but it was centered around a WAMP setup. I am on a LAMP setup. You can test it here: http://dev.digital-focus.us/test/blah/facebook_test I will leave it up and wait for a response
The text was updated successfully, but these errors were encountered: