It is man's ability to remember that sets us apart, we are the only species concerned with the past. Our memories give us voice, to bear witness to history so that others might learn, so they might celebrate our triumph and be warned of our failures ...

Facebook app development ..

Filed Under (Facebook) by Abhishek Jain on 22-12-2010

I was recently developing an application for facebook .. and came across an interesting problem ..

Problem:
The values submitted by our users were not being passed on to the next page when the application was being used for the first time.

Reason:
The form had action as “POST”

Explanation:
POST has a life time of a single request after which the values are lost .. now when the user tries using the application for the first time .. and submits the form .. facebook redirects him to the page where he/she has to provide the application access to users data .. on clicking “Allow” .. facebook redirects it to the original “action” mentioned in the form .. however in the process it doesnt forward the POST values submitted .. and hence the values are not available in the next page ..

Solution:
Instead of using POST use GET as action in the form .. this way .. all the form values are passed in the url itself and hence are not lost in the transition ..

Subscribe to Rss Feed : Rss