ColdFace Alpha2
ColdFace is a simple framework for building Facebook applications in ColdFusion. The framework is aware of the different application types (FBML, IFrame, external) so the developer can use a common approach regardless of which type they develop.
ColdFace handles all Facebook interaction and provides easy access to the Facebook API. It also has a ColdFusion tag library to enhance the FBML tags :) To demonstrate the tag concept, consider this;
[viewcode] src=”http://code.mrbuzzy.biz/coldface/concept.cfm?sauce” geshi=cfm showsyntax=no[/viewcode]
Live Example Application
Visit the about page jump straight to the canvas or see the application running externally.
Set Up + Example Application (quick setup)
1. Extract the whole Coldface archive to the web root of your site
2. Create an application at Facebook.com via the Developer application.
3. Set your application’s callback URL to http://yoursite.com/coldface-example-app/
4. Edit /coldface-example-app/config/coldface.ini.cfm filling in the required settings. Currently: api_key, secret, callbackURL, canvasURL.
5. You’re done, web browse to the app on your web server or on Facebook.
Set Up (proper)
1. Extract /org/coldface to anywhere you like (preferably not under web root).
2. Via the CF Administrator (or per app settings) configure a mapping called /org to the folder of the same name from step #1.
Building a Coldface App from scratch (the ColdFusion part)
1. Create your Application.cfc which should extend org.coldface.framework.Application
2. Create the config file as required and save it anywhere you like
3. Invoke Init(absolutepathtoconfigfile) from your Application.cfc
4. Create a ‘hello world’ index.cfm… and you’re done.
Application.cfc example
[viewcode] src=”http://code.mrbuzzy.biz/coldface/Application-example.cfc?sauce” geshi=cfm showsyntax=no[/viewcode]
[...] Sorry, no code to show yet. A while back I did try to write some doco. [...]