Create facebook object each and every time?

Posted by oshirowanen on Stack Overflow See other posts from Stack Overflow or by oshirowanen
Published on 2012-12-17T11:01:04Z Indexed on 2012/12/17 11:02 UTC
Read the original article Hit count: 199

I have a login page which will log a user into my webapp based on their facebook login details.

I then create a session to remember who they are.

What I want to know is, should I be creating and/or checking the facebook credential on every single page of my webapp, or should I simply use the session I create at the beginning to login?

For example, once they have logged in, I would like to allow them to post a message onto their own facebook wall from my app. Should I check the login credentials before they can post by recreating the facebook object, or should I simply use the stored login details already in my session and use that to post to their facebook wall?

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook