View Full Version : Landing page for guests using codigniter and facebook authentication

10-20-2012, 04:16 PM
I'm currently setting up a new website which uses facebook authentication to log in users. I'm wondering how I would go about showing a landing page for unauthenticated users using codeigniter. I'm using the javascript api. I already have the authentication set up, but I don't think a redirect is the way to go. Currently it's just a single page which asks for a log in if you're not logged in. I want a facebook.com style authentication method where the users is prompted with an unauthenticated landing page (without redirect) and another page when a user IS authenticated. Any ideas?

I'm using the facebook javascript API

Someone proposed using the jquery load function to get a landing page, but I'm not sure if that is the correct way to go. How would you guys do it?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum