Flash AS3 integration in Facebook Apps (Part 2 of 2)
All right so now you got the Flash part understood from part 1/2, let’s look at the FB app structure and play with some PHP/MySQL/FBML.
First of all you need to get started by setting up our app in Facebook, get your API and secret key, canvas url, etc… There’s plentty of tutorials out there to help you with this part.
Then, you wanna download the source files here and follow the steps below:
1 – create a database for your app and create a table called ‘rastas’:
CREATE TABLE IF NOT EXISTS `rastas` (
`id` int(10) NOT NULL auto_increment,
`appUserID` int(10) NOT NULL,
`targetID` int(10) NOT NULL,
`image` varchar(300) collate utf8_unicode_ci NOT NULL,
`imageTime` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=44 ;
2 – Open the file inc/globals.php and replace all the ‘XXXXXX’ with the relative information (API, secret, Database connection,app url, etc…)
3 – Open all the other files and enjoy some comment reading. if you have some basic knowledge of PHP, you should be all set to enjoy this code!
Have fun and please share your work with us!
Oh, and by the way, make sure you test the app here and eventually become a fan here
Below is a sample code of the file /inc/flash.php




Hey this is a great article. I’m going to email this to my friends. I stumbled on this while surfing for some free lyrics, I’ll be sure to come back. thanks for sharing.