Book Image

Facebook Graph API Development with Flash

By : Michael James Williams
Book Image

Facebook Graph API Development with Flash

By: Michael James Williams

Overview of this book

The Facebook platform provides you with an ideal solution for building rich, social experiences on the web to develop an effective user experience application. Combined with Flash which effectively enables social interactions, you can create a fully functional application on Facebook. If you've been waiting to get started with your own applications and games on Facebook, with this book you don't have to wait any longer.This book takes you through everything you need to know to integrate your AS3 apps and games with Facebook accompanied by illustrative screenshots and short quizzes.It presents you with in depth coverage of the key underlying concepts such as creating a basic application that runs inside Facebook and exploring the Graph API which greatly simplifies how developers can retrieve data. This book also covers topics on security, permissions and authentication features on Facebook.This beginner's guide starts off by teaching you about retrieving simple public data and then rapidly working your way up to authenticating users, building powerful searches across the entire database, and uploading photos and other content. Throughout the book, you'll learn by building two fundamental components: an RIA Facebook interface and an AS3 SDK that you can drop into any project to add Facebook integration. This easy-to-understand guide has everything written as AS3-only projects with publicly available components, so you can follow along whether you use Flash Pro, Flex, or MXMLC – as long as you know AS3! This hands-on tutorial will present you with a whole new perspective of the three core aspects of Facebook – searching, retrieving, and updating the data .This practical book focuses on how to set up an application on Facebook and how to deal with different contexts like AIR.By the end of this book, you will be confident enough to set up your own application and create social interactions for users to share on Facebook.
Table of Contents (17 chapters)
Facebook Graph API Development with Flash Beginner's Guide
Credits
About the Author
Acknowledgement
About the Reviewer
www.PacktPub.com
Preface
Index

Index

A

  • access token
    • about /
    • requesting, with browser /
    • using /
    • access_token parameter /
    • Application Secret /
    • receiving /
  • access_token parameter /
  • action function /
  • action parameter /
  • actions parameter /
  • Adobe ActionScript 3 SDK
    • using, for Facebook platform /
  • Adobe Social service /
  • AIR
    • authorizing through, with HTTP /
    • authorizing through, with SDK /
    • for Android application /
  • albums
    • about /
    • creating /
  • ampersand (&) /
  • Android
    • AIR for /
    • authorizing on /
    • SDK, modifying /
  • API URL
    • for FQL query, URL /
  • AppData
    • URL /
  • application
    • registering, with Facebook /
    • redirect URI, registering /
    • adding, to page tab /
    • facebook settings, selectring /
    • profile page, editing /
    • profile page, creating /
    • custom tabs /
  • Array.join() method /
  • AS3
    • about /
    • used, for accessing Graph API /
    • page information, retrieving /
    • authenticating with /
    • access token, using in Graph Visualizer /
    • authenticating, through application /
    • authenticating, via JavaScript /
    • callback page, creating /
  • AS3 Facebook SDK
    • about /
  • AS3 object-oriented model /
  • as3corelib
    • URL /
  • as3corelib library /
  • as keyword /
  • attemptToAuthenticate() function /

B

  • birthday wall posts
    • loading /
  • browse() method /
  • browser
    • Graph API, accessing through /

C

  • checkins
    • about /
  • comments
    • about /
  • community page
    • about /
  • COMPLETE event /
  • compound object
    • creating from list, results based /
  • connections
    • finding, in browser /
    • exploring /
    • rendering /
    • graph objects connections, rendering /
    • requestor /
    • HTTP requestor, creating /
    • about /
  • connections object /
  • constructor function /
  • controllers.CustomGraphContainerController class /
  • controllers.GCController class /
  • coordinates parameter /
  • create_event (Boolean) /
  • crows' feet
    • about /
    • drawing /
  • crows@#U+0027: feet
    • about /
  • CustomGraphContainerController /
  • CustomGraphContainerController.as /
  • CustomGraphContainerController.renderGraphObject() method /
  • CustomGraphContainerController.search() function /
  • CustomGraphContainerController class /
  • CustomGraphContainerController requests /
  • custom tabs
    • about /

D

  • data
    • obtaining, in pages /
    • based on data, requesting /
  • data-based filtering /
  • data-based paging
    • about /
  • data models, FQL
    • AS3 object-oriented model /
    • graph model /
    • relational database model /
  • data property /
  • data representations /
  • Date object /
  • debugging
    • about /
  • decodedJSON object /
  • deleteGraphObject() method /
  • deleteObject() function /
  • deleteObject() method /
  • De MonsterDebugger tool /
  • DialogEvent /
  • DialogEvent class /
  • domain names
    • about /
  • Don@#U+0027:t allow dialog box /

E

  • escape()method /
  • event RSVPs
    • about /
  • events
    • about /
  • event_member table /
  • expires_in parameter /
  • extended permissions
    • about /
    • obtaining /
    • requesting /
    • permanent access token, using /
    • dealing with /
  • ExtendedPermissions class /
  • ExternalInterface /
  • ExternalInterface call /
  • ExternalInterface class /

F

  • Facebook
    • about /
    • benefits /
    • statistics page /
    • numbers /
    • signing up /
    • friends profile, checking out /
    • privacy settings, viewing /
    • application, registering with /
    • data posting, via SDK /
    • settings, for application /
    • policies /
  • Facebook, features
    • Facebook credits /
    • test users /
    • new messages /
  • Facebook.api() method /
  • Facebook.login() method /
  • Facebook.postData() method /
  • Facebook APIs
    • about /
    • JavaScript SDK /
    • Insights API /
    • Facebook Chat API /
    • Internationalization API /
  • Facebook application directory
    • about /
  • Facebook Chat API /
  • Facebook Developer
    • URL /
  • Facebook Developer Blog
  • Facebook developer resources
    • official Facebook resources /
    • other websites /
  • Facebook Developer Roadmap
  • Facebook page
    • loading /
  • FBML
    • about /
  • feeds
    • searching for /
    • searching, through visualizer /
  • field /
  • FileZilla
    • URL /
  • Filter button /
  • flash.display.Loader class /
  • Flash game portals
    • about /
  • Flash Tracer for Firebug /
  • FQL
    • about /
    • interface /
    • field /
    • data models /
    • data representations /
    • existing Graph API calls, recreating /
  • FQL, advanced
    • about /
    • operators /
    • comparision operator /
    • logical operator /
    • multiple queries, calling /
  • FQL query builder
    • creating /
  • friend@#U+0027:s wall posts
    • searching for /
  • friends property /
  • friends_interests extended permission /
  • FROM clause /
  • from property /
  • FTP (Media Temple's instructions)
    • URL /
  • functions, FQL
    • now() /
    • me() /
    • rand() /
    • strip_tags(field) /
    • strlen(string) /
    • substr(string, startpos, length) /
    • strpos(string, term) /
    • lower(string) /
    • upper(string) /

G

  • Graph
    • traversing /
    • as layer /
  • graph.GraphList class /
  • graph.GraphObject /
  • Graph API
    • about /
    • accessing, through browser /
    • accessing, through AS3 /
  • GraphList class /
  • GraphList instance /
  • GraphListinstance /
  • Graph List Renderer /
  • graph model /
  • GraphObject.as class /
  • GraphObject class /
  • GraphObject instance /
  • Graph Object Renderer /
  • graph objects
    • deleting /
    • post, deleting /
    • post deleting, visualizer used /
    • publishing /
    • comments /
    • likes /
    • likes, deleting /
    • notes /
    • events /
    • event RSVPs /
    • albums /
    • photos /
    • checkins /
  • GraphRequest /
  • GraphRequest class /
  • GraphRequest instance /
  • GraphRequest instances
    • since, adding /
    • until, adding /
  • GraphRequest object /
  • Graph URL
    • about /
    • ids parameter, using /
    • ids parameters, using /
    • searching, without authorization /
    • searching, with authorization /

H

  • header (string) /
  • HTTP
    • used for authorizing, through AIR /
  • HTTPRequestor() constructor function /
  • HTTPRequestor.request() /
  • HTTPRequestor class /
  • HTTPStatusEvent listener /

I

  • ids parameters
    • using, for Graph URL /
  • if block /
  • IFrame
    • about /
    • application, setting up /
  • inbox messages
    • sending /
  • info
    • visualizing /
  • information
    • retrieving, from page table /
  • initComplete() function /
  • initialize() function /
  • Inside Facebook
    • URL /
  • InsideNetwork
    • URL /
  • Inside Social Games
    • URL /
  • Inside Virtual Goods
    • URL /
  • Insights API /
  • Internationalization API /
  • IOErrorEvent listener /
  • IO_ERROR event listener /
  • IRequestor.as interface /
  • IRequestor interface /

J

  • JavaScript SDK /
  • JSON (JavaScript Object Notation) /
  • JSON.decode() method /
  • JSON.encode() method /
  • JSON object
    • deserializing /

K

  • Komodo Edit
    • URL /

L

  • length property /
  • likes
    • about /
  • limit
    • using, for other connections /
    • adding, to GraphRequest /
  • limit parameters /
  • listFilterCallback() function /
  • lists
    • rendering /
    • of posts, rendering /
    • number of objects, displaying /
  • load() method /
  • loginComplete parameter /
  • lower(string) function /

M

  • me() function /
  • message parameter /
  • metadata=1 flag /
  • metadata=1 parameter /
  • metadata parameter /
  • method=delete parameter /
  • MinimalComps
    • URL /
  • MouseEvent.CLICK listener /
  • multiple IDs
    • requesting, at once /

N

  • name property /
  • networks
    • about /
    • URL /
  • networks property /
  • news feeds
    • searching for /
  • Notepad++
    • URL /
  • notes
    • about /
  • now() function /

O

  • OAuth 2.0 protocol /
  • objects
    • exploring /
    • requesting /
  • offset
    • adding, to GraphRequest /
  • offset parameters /
  • onAuthenticationComplete() function /
  • onGraphDataLoadComplete() function /
  • onGraphSearchComplete() function /
  • onHTTPStatusReturned() method /
  • onRequestorInitialize() function /
  • Open Graph Protocol
    • about /
  • operators
    • comparision operator /
    • logical operator /
  • ORDER BY clause /
  • ordering /

P

  • Page
    • about /
    • loading /
  • PageData
    • URL /
  • page tab
    • about /
    • application, adding to /
  • page table
    • information, retrieving from /
  • paging
    • about /
  • paging node /
  • paging object /
  • permissions
    • about /
  • permissions, FQL
    • about /
    • existing permissions, checking /
    • permissions_info /
  • permission_name (string) /
  • personal profile
    • about /
  • photo album
    • about /
  • photos
    • loading, from album /
    • uploading /
  • PHP
    • about /
  • picture field /
  • place parameter /
  • Pop Out button /
  • post
    • deleting /
    • deleting, via visualizer /
  • POST HTTP request method /
  • POST method
    • using /
  • Powered by… /
  • primary keys
    • about /
    • photo.owner /
    • photo.aid /
    • album.cover_pid /
  • privacy
    • post privacy settings, setting /
  • privacy parameter /
  • profile page, application
    • editing /
    • creating /
  • public profile
    • about /
  • publish() function /
  • publish() method /
  • Publish button /
  • publishComplete() function /
  • PublishObject /
  • PublishObject class /
  • PublishObject instance /
  • PublishObject parameter /
  • publish_stream (Boolean) /
  • publish_stream permission /
  • publish_stream permissions /

Q

  • q parameter /

R

  • rand() function /
  • Real-Time Updates
    • about /
  • redirect_uri parameter /
  • relational database model /
  • renderGraphList() method /
  • renderGraphObject() method /
  • request() function /
  • request() method /
  • requestComplete() callback /
  • requestComplete()function /
  • requestComplete() function /
  • request method /
    • about /
    • POST method, using /
    • errors, listening for /
    • required permission, granting /
    • SDK, posting via /
  • requestor
    • about /
    • HTTP requestor, creating /
  • restrictions, FQL
    • about /
    • indexable field, using for searches /
  • result parameter /
  • Rich Internet Applications (RIAs)
    • about /
  • rich posts
    • publishing /
  • rsvp_event (Boolean) /

S

  • scope parameter /
  • SDK
    • searching via /
    • AIR, authorizing through /
    • modifying, for Android /
  • SDKRequestor() constructor /
  • SDKRequestor.attemptToAuthenticate() method /
  • search
    • websites search box, using /
    • quick search results, examining /
    • full search results, using /
    • without authorization /
    • with authorization /
    • restrictions /
    • window, implementing in visualizer /
    • via SDK /
    • , via SDK /
    • locale, setting /
    • feeds, searching for /
    • wall posts, searching for /
    • news feed, searching for /
    • friend@#U+0027:s wall posts, searching for /
    • feeds, searching through visualizer /
  • search() function /
  • search() method /
  • searchComplete() /
  • search results
    • examining /
    • full search results, using /
  • search window
    • implementing, in visualizer /
  • setAccessToken() /
  • setAccessToken() function /
  • Show button /
  • since parameter /
  • SOS max /
  • source code
    • about /
  • source parameter /
  • status message
    • about /
  • status property /
  • strip_tags(field) function /
  • strlen(string) function /
  • strpos(string, term) function /
  • substr() function /
  • substr(string, startpos, length) function /
  • success parameter /
  • summary (string) /

T

  • tables
    • linking /
  • TextMate
    • URL /
  • this.accessToken /
  • time property /
  • type parameter /

U

  • uid (integer) /
  • until parameter /
  • upper(string) function /
  • URLLoader request /
  • URL parameter /
  • URLRequestMethod class /
  • URLRequest object /
  • URLRequest objects /
  • URLVariables object /
  • URLVariables parameter /
  • user/application authorization
    • about /
  • User Agent Flow /
  • user feed
    • posting to /
  • user_checkins permission /
  • user_interests extended permission /

V

  • Visualizer
    • about /
  • visualizer
    • search window, implementing in /
    • feeds, searching through /
  • Vizzy Flash Tracer /

W

  • wall
    • posting to, visualizer used /
  • wall posts
    • searching for /
  • web hosts
    • about /
    • need for /
    • selecting, ways /
    • software, requisites /
  • website property /
  • window.open() /

Z

  • Zoom In button /