1 / 20

Facebook apps with a ColdFusion backend

Facebook apps with a ColdFusion backend. Simon Free @simonfree. www.cfunited.com. What to expect. Why would you make a Facebook application? The differences between a platform and an API The registration process Your first roadblock A look at FBML Digging into the API CF is your glue

saxon
Télécharger la présentation

Facebook apps with a ColdFusion backend

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Facebook apps with a ColdFusion backend • Simon Free • @simonfree www.cfunited.com

  2. What to expect • Why would you make a Facebook application? • The differences between a platform and an API • The registration process • Your first roadblock • A look at FBML • Digging into the API • CF is your glue • The new, dreaded, Extended Privacy • Useful resources www.cfunited.com

  3. Why would you make a Facebook application? • Viral Marketing • Drive traffic • Add features to your current site www.cfunited.com 3

  4. The differences between an API and a Platform www.cfunited.com

  5. The workings of a Facebook App www.cfunited.com

  6. The setup process - Step 1 • Name your application www.cfunited.com 6

  7. The setup process - Step 2 • Make note of your API Key and Secret Key www.cfunited.com 7

  8. The setup process - Step 3 • Set up your url and canvas information www.cfunited.com 8

  9. The setup process - Step 4 • Select required sandbox mode and provide apple ID if necessary www.cfunited.com 9

  10. The setup process - Review www.cfunited.com

  11. Your first roadblock • Validation is carried out on form fields that have specific names (pre cf9) <cfscript> if(structKeyExists(form,"fb_sig")){ form.fb_sig_local = form.fb_sig; form.fb_sig = ''; } </cfscript> www.cfunited.com

  12. A look at FBML • Tag system that handles output of data • Tags display data just as the web site does • Tags are mostly used for UI and layout • Conditional logic tags do exist Example Tags: <fb:action href="action.cfm">Click Me!</fb:action> <fb:profile-pic uid="12345" linked="true" /> <fb:user uid="12345" /> <fb:captcha /> www.cfunited.com

  13. Lets look at some code! www.cfunited.com

  14. Digging into the API • RESTful-ish API • Dot delimited methods • Methods grouped in actions • Returns XML, JSON or Facebook PHP Client • Access to fql (similar to SQL) • API Key, Call ID, MD5 Hash of Secret Key and Version needed for every request www.cfunited.com 14

  15. Lets look at some code! www.cfunited.com

  16. CF is your glue • Use API to get Data • Parse and loop over data with CF • Output using FBL • Store data associated with uid with CF and SQL www.cfunited.com 16

  17. Lets look at some code! www.cfunited.com

  18. The new, dreaded, Extended Privacy • Users can now choose to hide: • Picture • Name • Profile www.cfunited.com 18

  19. Useful Resources • Facebook developers Wiki • http://wiki.developers.facebook.com/index.php/Main_Page • Facebook Get Started Section • http://developers.facebook.com/get_started.php • Facebook Developers Tools • http://developers.facebook.com/tools.php www.cfunited.com 19

  20. Thats all folks! Questions / Comments? Simon@simonfree.com Slides will be available at: http://www.simonfree.com/presentations/ Follow me on twitter: http://www.twitter.com/simonfree www.cfunited.com

More Related