Codeigniter, Facebook javascript SDK, PHP SDK Redirect after facebook login doesn't getUser() until refresh
Well I seem to have figured this out. I made this change to the javascript:
FB.Event.subscribe('auth.login', function(response) { FB.api('/me', function(response) { window.location.reload(); });});
I guess that by adding the FB.api('/me', function(response){}); it somehow made the getUser() return true. If anyone else is having getUser() return 0 try this. Anyway I hope this helps others :)