-
Book Overview & Buying
-
Table Of Contents
Facebook Graph API Development with Flash
By :
Here's what is going to happen:
We'll embed our application's SWF in a web page, and load the page in a browser.
The application will call a JavaScript function inside the web page, telling it to load the "authorize" URL in a new browser window.
The new window may ask us to log in; once we're authenticated, it'll redirect to the Redirect URI page, just as when we used it earlier.
This time, however, we'll have changed the Redirect URI page to one that we control (rather than using the Google home page). It will obtain the access token and pass it back to a JavaScript function in the page containing our application's SWF.
That JavaScript function will pass the access token to an AS3 function in our application, which will then be able to use it everywhere.
For this to work, the web page that Facebook redirects us to (in Step 4, containing the SWF) needs to be online. That means we need to have a web host. See Chapter 1 for details on setting one up...
Change the font size
Change margin width
Change background colour