I am working on a facebook application and there is something I just don’t understand how their authorization system works.
Our main setup is
canvas URL = domain.com/facebook
This is a simple page with an FBML Iframe element that points to domain.com/facebook/app, which is the HTML page that serves the Flash application.
The Flash application requests additional data from our application server - some of these requests request data on facebook (for example, a list of friend identifiers).
So, Flash then makes a request to domain.com/resources/facebook/friends - this is a PHP page that creates an instance of Facebook (their PHP library) and makes the necessary call to their API and returns the data.
However, the request to this URL (via flash memory) is not checked, so it is then redirected to their username when it itself redirects my canvas URL with two parameters - auth_token and the following . Thus, the request is valid, but redirection interrupts the flash call.
So, I'm trying to figure out how to make these other API calls (when they themselves call the facebook API calls), there will be facebook-vaildated from get-go.
source
share