I'm working on a facebook app and there's something I'm just not understanding about how their authorization system works.
Our basic setup is this
canvas URL = domain.com/facebook
This is a simple page with an FBML Iframe element that points to domain.com/facebook/app which is an HTML page that serves up a Flash Application.
The Flash Application requests additional data from our application server - some of those requests ask for facebook data (such as a list of friend IDs).
So Flash then makes a request to domain.com/resources/facebook/friends - this is a PHP page which creates a Facebook instance (their PHP library) and performs the necessary call to their API and returns the data.
However, the request to this URL (by flash) doesn't validate, so it is then redirected to their login when then itself redirects back my canvas URL with two parameters - auth_token and next. So the request is valid, but the redirect breaks the flash call.
So, I'm trying to figure out how to make these other API calls (when themselves mace facebook API calls) be facebook-vaildated from the get-go.