Building Facebook Application with Flex Sung Wu Aaron Tong 2008/1/23.

Slides:



Advertisements
Similar presentations
Bid for Technical Prize. Four Corners Technologies Used HTML/CSS Javascript/JQuery PHP/MYSQL Adobe Flash/Flex Papervision3D XML Facebook/Twitter API.
Advertisements

FI-WARE Testbed Access Control temporary solution.
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook API Teppo Räisänen
Web browsers It’s a software application for retrieving and presenting information on WWW. An information resource is identified by a Uniform Resource.
Chapter 6 Preparing and Publishing Applications. Chapter 6 Lessons 1.Publish movies 2.Reduce file size to optimize a movie 3.Create a preloader 4.Publish.
Presented By, Sripad Sarode
Designer’s Challenge – Web-based Applications using Adobe Flex and OpenInsight Clay Borne President CLB IT.
1 GWT Google Web Toolkit Build AJAX apps in the Java language
Electrical and Computer Engineering Vitaly Gordievsky Alex Trefonas Scott Richard Matt Beckford Final Project Review.
Facebook Platform: 101 Network Journal Club Meeting Shaomei Wu May 7, 2008.
Do We Really Need Rich-Interface Technologies? Yifan Zhang
Flex and ActionScript. What is Flex? Adobe Flex is a rich Internet application framework built on top of the Flash platform Applications are built using.
Basic concept Technologies we have used The Design Problems, challenges & solutions Educational Gain.
Facedroid Facebook for Android. Facebook Application - API key - Secret key - PHP page Facebook Application - API key - Secret key - PHP page Facebook.
VCT May 20, 2009 Sapna Blesson Advisor: Dr.Christopher Pollett.
Electrical and Computer Engineering PeopleFinder Vitaly Gordievsky Alex Trefonas Scott Richard Matt Beckford Midway Design Review.
Electrical and Computer Engineering PeopleFinder Vitaly Gordievsky Alex Trefonas Scott Richard Matt Beckford Comprehensive Design Review.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
RIA - Flex and ActionScript RIA – Flex and ActionScript CS590 - Ashok Sahu.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California ArcGIS Viewer for Flex—
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
UNIT-V The MVC architecture and Struts Framework.
Paul Trani Adobe Certified Instructor/Expert Resources:
Presented by…. Group 2 1. Programming language 2Introduction.
Sitefinity CMS Technical Overview & Developer’s Perspective
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Programming in Facebook hussein suleman uct cs honours 2007.
CHEF II / Sakai Architecture. CHEF II Changes uPortal replaces Jetspeed –jsr 168 portlet, servlet compliant Spring replaces Turbine component framework.
DEV-5: Introduction to WebSpeed ® Stephen Ferguson Sr. Training Program Manager.
Dr. Rado Kotorov Technical Director Strategic Product Mgt. Jeff Shein Technical Manager Creating Web 2.0 Rich Internet Applications (RIA) and Dashboards.
Flex Data Communications Nick Kwiatkowski, Michigan State University.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California ArcGIS Viewer for Flex.
Adobe Flex 2.0 By Axel Jensen. Table of Contents Evolution of Computer Applications Advantages of Rich Internet Applications (RIA) Different RIA Technologies.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Adobe RIA Technologies: Adobe Flex 3 Cornel Creanga Platform Evangelist
Create Windows ® Applications with.NET Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
A New Approach to Java Clients Robert Buffone Chief Architect Nexaweb Technologies By
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Extend the Operations Dashboard with Custom Widgets (and more)
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
Introduction to Flex 2 by Rich Tretola. About Me Rich Tretola is a senior software developer at Herff Jones, Inc. specializing in Rich Internet Applications.
Facebook is a social utility that connects you with the people around you. Use Facebook to…  Keep up with friends and family  Share photos and videos.
Using MS Excel to validate & load your data into Oracle EBS.
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
John Maver (978)
Basic ActionScript and PHP Cis 126. Getting Started set up a basic folder structure so we can keep our files organized. Mirror this structure on your.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
IE Developer Tools Jonathan Seitel Program Manager.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Introduction to Node.js® Jitendra Kumar Patel Saturday, January 31, 2015.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
PHP / MySQL Introduction
Using Access and the Web
Introduction to Silverlight
Newsletters An automatic news recommender system
Lecture 1: Multi-tier Architecture Overview
Playing the Web William White, Yahoo! Media Innovation Group
Selenium Tutorials Cheyat Training.
Dongwhan Kim Annie Zhao Steven Lawrance
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Session Abstract This session will provide an overview of the latest improvements and enhancements made to the Ed-Fi ODS/API in 2016, as well as a preview.
Presentation transcript:

Building Facebook Application with Flex Sung Wu Aaron Tong 2008/1/23

Agenda  High-level view of building Facebook application using Flex.  Advantage & limitation  How to create a simple Facebook app in Flex Introduction to fbas Introduction to fbas Web session Web session Desktop session Desktop session Canvas, profile box, and tab Canvas, profile box, and tab  Q&A

Architecture: Traditional Apps FB server Broswer Your server 1)Go to canvas 6) Return page 2) Send request & session_key 4) Response with page content 3) Call API

Architecture: Flex Apps FB server Broswer 1)Go to canvas2) pass session key & session secret Flex swf 3) Call API

Why Using Flex for Facebook App  Develop in desktop mode before deploy. Reduce turn-around time  Reduce server load  integrated development environment. Integrated Debugger: better than Firebug. Integrated Debugger: better than Firebug.  Easily built rich interface Built-in UI components and effects. Built-in UI components and effects.

Limitation  Cannot send Request/Invite  Need to popup new browser window for sending invitation  Flash is not auto-played on profile and tab page. (user has to click on it)  OpenSocial containers provide REST API only after v0.8  Loading time may be longer

Actionscript API for Facebook  Facebook official API: PHP  Other languages have to use 3 rd -party API  Facebook API is REST-styled http API  Several 3 rd -party open-source Flex API exists

facebook-actionscript-api  actionscript-api/ actionscript-api/ actionscript-api/  Created by Jason Christ (  3 types of usage modes

fbas   Works on both Facebook & Bebo  Extension to Jason Christ’s facebook- actionscript-api to provide support for new methods eg. feed.xxxxxx feed.xxxxxx new feed API new feed API datastore API datastore API  Compatible to facebook-actionscript-api Code written for facebook-actionscript-api should be able to port to fbas transparently. Code written for facebook-actionscript-api should be able to port to fbas transparently.

facebook-actionscript-api & fbas  Two are compatible  fbas is just extension to facebook- actionscript-api with more API methods and a few fixes. Same usage.  fbas can support Bebo as well as Facebook

Desktop Session & Widget Session  Facebook-actionscript-api has desktop mode and widget mode Desktop session – desktop app Desktop session – desktop app Widget session – web app Widget session – web app  Desktop session AIR apps or development AIR apps or development  Widget session Deployment Deployment

Example1: Desktop Session fBook = new Facebook(); fBook.addEventListener(Event.COMPLETE, onFacebookReady); //start up a desktop instance fBook.startDesktopSession(“api_key", “secret_key");

Example: Desktop Session for Bebo (fbas only) fBook = new Facebook(); fBook.addEventListener(Event.COMPLETE, onFacebookReady); //start up a desktop instance fBook.inBebo(); fBook.startDesktopSession(“api_key", “secret_key");

Example2: Widget Session fBook = new Facebook(); fBook.addEventListener(Event.COMPLETE, onFacebookReady); //start up a desktop instance var flashVars:Object = Application.application.parameters; fBook.startWidgetSession(falshVars, “api_key", “secret_key");

Example: Widget Session for Bebo (fbas only)  Exactly same thing. No change.  fbas startWidgetSession() will transparently handles it fbas startWidgetSession() will look at fb_sig_network parameter in fbas startWidgetSession() will look at fb_sig_network parameter in fb_sig_network=Facebookfb_sig_network=Facebook fb_sig_network=Bebofb_sig_network=Bebo Transparent to API user Transparent to API user

Example: set profile FBML // do the start desktop session or start widget session as shown before fbook.profile.setFBML(“your fbml content”, userid);

Example: get friends id ….. fbook.friends.getFriends(onGetFriends); ….. ////////////////////////////////////////////////////////////////////////////////////////////// private function onGetFriends(e:Event):void { var d:GetFriendsDelegate = e.target as GetFriendsDelegate; var users:String = ""; if (d.success) { for each (var user:FacebookUser in d.friends) { users += user.uid + ","; } Alert.show("friends=\n" + users); }

Resources  Fbas:  Facebook-actionscript-api: actionscript-api actionscript-api actionscript-api

End  Sung Wu   Would like to meet other Facebook/OpenSocial/Flex developers  Disclaimer:  Facebook trademark belong to Facebook  Flex trademark of Adobe

Q&A

Back up slides

Facebook-actionscript-api Setup  Dependency: corelib.swc, flexunit.swc  Drop-in swc file or  Create a project with the source code.

Known Issues with Facebook- actionscript-api V0.9.1  V0.9.1 is the latest released version as of 2008/4/23.  The following issues appears in v0.9.1, but is fixed already in the checked-in code, so it will be available on next version  Friends.getAppUsers() does not work  Profile.getFBML() will throw exception if there is no content in profileFBML