I need to work out how to check to see if the user logged in on facebook is the same user that is already logged in on my web app.
I'm using code igniter for my web app and storing the users fb id in a session called fb_user_id.
How can I match this with the logged in user on facebook to prevent users logging out and logging in to another account on facebook and then using my app again before the session has expired?