Page 1 of 1
Keeping track of facebook details after submission
Posted: Wed Aug 24, 2011 3:30 am
by social_experiment
So i worked on an idea for a facebook application but i've reached an impasse. When i access the application the first time, i have access to certain user information without a hitch but if i submit my form (the application requires a option to be selected from a select menu), i get an error about the access token. I've googled this quite a bit and found some help but not enough to get the application really working (keeping the user information after the page has been submitted). Any ideas / help / url's on this? I am using the PHP-SDK for this, if that's of any relevance.
Re: Keeping track of facebook details after submission
Posted: Fri Aug 26, 2011 9:40 am
by Jade
Why not store the information to sessions when you have it and then once the form is submitted you can reference the session data?
Re: Keeping track of facebook details after submission
Posted: Fri Aug 26, 2011 1:09 pm
by social_experiment
Good point, i haven't really thought about that, or maybe i have but i'm not really sure how to implement it , i think it has to do with OAuth, because i catch the exception that's thrown. Most information relevant to it suggests (or at least i think so) calling the page, but with all the necessary details in the action attribute of the form. I'll look into the session angle over the w/e. Thanks for the tip
Re: Keeping track of facebook details after submission
Posted: Sat Aug 27, 2011 6:15 am
by social_experiment
I've tested it again using ajax and then the data persists, probably because a new page isn't accessed.
Re: Keeping track of facebook details after submission
Posted: Wed Nov 02, 2011 7:32 am
by Jade
If you don't want the data to persist you'd have to update it or clear it out after the next ajax call is sent.