
So you want something from facebook, like say, the contents of your publicly viewable facebook wall to be streamed-in and displayed on your own website? Maybe by way of a nice clean XML version of public facebook pages? Seems reasonable since it's the same information that is publicly available on your public facebook page, right? While twitter, flickr, and other services think this makes sense, Facebook doesn't seem to think so.
To even ask Facebook what time of day it is, you will need to jump through a series of hoops and gain a partial understandanding their api flow. It is not easy... there is never one right way to do things with their systems, and their documentation is a complete disaster. Just about every reference page lacks examples, and when they are to be found they either omit crucial setup information, are deprecated, or just plain don't work. My findings in that regard seem to be consistent with those of the majority of posters on the developer forums as well as in blogs.
At my agency, all we wanted to do was read in our Facebook page's wall stream into our flash movie, just as we had easily achieved with our twitter feed, youtube feed, and our latest wordpress blog entries.
What follows is my solution to this problem after about a week of day and night working, trial and error, giving up and trying again, and reading probably 500+ technical blog articles, forum posts, and documentation pages. It is possible, and this article exists so you don't have to ever endure a week like mine.
From everything I understand after dealing with this, your applications cannot make ANY calls to the facebook API without explicit approval by a logged in Facebook user at every step of the way.
The Facebook application model was clearly designed primarily to only be interacted with from within the Facebook site itself. Not only must a user authorize the application, but for it to run any code the user also has to have a valid authenticated session established on Facebook (they must be logged into the site).
Correct me if I am wrong on any of the above, as there is a lot about it I still do not understand. I feel they have too many unnecessary levels of complexity. Suffice it to say that facebook ensured that it is a lot more difficult than it ought to be to gain ANY information for free about ANYONE or ANYTHING.
Not wanting our users to go through some cumbersome login process just to see facebook data on our site, I set up a facebook application and ran some code that pulled our wall stream from the api. Worked fine when running from its facebook application url, but trying to run the script directly on our server, i'd get errors like "Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in" (it was nice however that facebook coded-in informative error handling). I just could NOT think of a solution to this, so I thought we would just go on and scrape the page. Hey, its publicly viewable! We are just copying it over to our site.
I wrote the following scrape script which 100% works but has the following obvious drawbacks:
Maybe you will find this useful in someway, so try it out, fbscrape.php in this article's demo files package.
download this article's demo file package
view it in action (Scraping the Steelhead Advertising page.)
If you follow these steps exactly, you should be able to dance around the facebook rules and gain access to your stream.

The demo files package includes the fbstream-2.php example. A little more advanced, it creates an xml feed of the author names, picture icons, and comment counts, handles embedded images and youtube items, and string-parses the facebook timestamp into a modern "web 5.7" relative time signature. This is all set to be SHIPPED OUT to the flash movie, external application, what have you.