OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook API Teppo Räisänen

Slides:



Advertisements
Similar presentations
Login to Top Hat Password Log In Need a Top hat Account – sign up here. I forgot my password You must log in first Display error Messages here.
Advertisements

Overview of Twitter API Nathan Liu. Twitter API Essentials Twitter API is a Representational State Transfer(REST) style web services exposed over HTTP(S).
Login Page Using this page students can login in DAMS SISOnline. Enter your User Name(Roll No.) and Password to login into it.
New Release Announcements and Product Roadmap Chris DiPierro, Director of Software Development April 9-11, 2014
Authentication Simon Cross Partner Engineer facebook.com/sicross An Overview.
The Graph API Simon Cross Partner Engineer facebook.com/sicross An Overview.
Making Euros Fred Fang Partner Engineer facebook.com/fang A How-To for Ads + Credits.
OAuth 2.0 By “PJ” (JP on meetup.com) iOS and PHP developer, and occasional lawyer Contact me via:
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook Markup Language - FBML Teppo Räisänen.
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook Javascript - FBJS Teppo Räisänen.
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook programming Teppo Räisänen
Facebook Applications Teppo Räisänen. Facebook Applications Facebook provides many Software Development Kits (SDK’s) – PHP SDK – iOS SDK – Android SDK.
Facebook apps Teppo Räisänen. Basic info screen View App Profile Page Submit to Search.
Facebook Apps Teppo Räisänen. Facebook apps Facebook apps are normal Web pages – They are run inside Facebook so they can take advantage of Facebooks.
Facebook Platform: 101 Network Journal Club Meeting Shaomei Wu May 7, 2008.
CS160 Discussion Section David Sun. Facebook Application Architecture Information repository Session management GUI Privacy.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Facedroid Facebook for Android. Facebook Application - API key - Secret key - PHP page Facebook Application - API key - Secret key - PHP page Facebook.
Creating Online Class Communities Jennifer Dorman Discovery Education
ManageEngine ADAudit Plus A detailed walkthrough.
Social networking FACEBOOK AND TWITTER. Then In the beginning of Facebook, there were very few features. There were no status updates, messages, photo.
Facebook 102: Customizing Your Dance Studio’s Facebook Page Presented By: Jill Tirone facebook.com/dancefitmarketing
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook programming Teppo Räisänen
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
OM. Brad Gall Senior Consultant
Keynotopia MyadVenture Messages Search Jerrid Matthews Handle: jmatthews Location: Los Angeles, CA Skills and Specializations.
Jordan Maxwell ADVANCED PROGRAMMING. DEFINITIONS PHP: A server side Programming language often used in websites. API: ( Application programming interface.
Version 1.0 Requirements.  PROstructor ◦ PROstructor is a community and service to finding, scheduling and paying professional for private, group lessons.
WEB-ENHANCED INFORMATION MANAGEMENT (COMS E6125) SPRING 2008 (CVN) NAVID AZIMI (NA2258) Web Platforms, or: How I Learned To Stop Worrying And Love Facebook.
Building Facebook Application with Flex Sung Wu Aaron Tong 2008/1/23.
C HAPTER Social Networking Using Facebook: Advanced Techniques 3 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.
Overview AdministrationEmployeeCustomerWaiting Screen.
Our Online Courier Management Application is developed with the latest technology and State of the Art Database. This Management Software will be very.
Facebook 101: What Dance Studio Owners Need To Know Presented By: Jill Tirone facebook.com/dancefitmarketing
Part 1 – PubMed Interface, Display options, Saving, Printing, and ing results. Instructions This part of the course is a PowerPoint demonstration.
Programming in Facebook hussein suleman uct cs honours 2007.
BRIAN WYKA.  Web-based project manager  Ideal for small company  Portal for employees to interact with each other  A way for administrators to monitor.
Jason Cortes, GOER Web Programming/Developer
Training Your Users Introducing new Staff, Students and Employers on the system.
Daniel PaluszekAbdelJLIL Jlil Verna Blake Adrian Libert Stanislav Opsha.
Facebook Query Language Dr.Kwanchai Eurviriyanukul February 2011 RMUTL.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
Database, Website & IT Functions Private and Confidential 1.
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.
FACEBOOK 495C0925 黃 琪 495C0912 林韶儀 495C0923 林君怡. What is “ Facebook” ? What is “ Facebook” ?  History  Characteristic  What can it do?
Intro to Datazen.
Workflow Demo: Upload, Review and Approve. Cpay : Users & Functionalities Customer AdministratorCustomer AuthorizerUploaderReviewerApproverInterceptor.
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.
UBN Software Solutions Pvt. Ltd. Bhubaneswar , Odisha, India ( ) UBN PROJECT CASE STUDY.
FACEBOOK Material adapted from
Server-Side Solutions Steve Perry
Social CRM March 7, The Case for Social CRM » On average 31% of people change their address every year New job Moving ISP change Change.
IHacky Jon Lao Hong Nguyen Marcius Bagwan. iHacky Goals: Widen the social level of the developer community by popularizing their ways of software development.
Invitation to Computer Science 6 th Edition Chapter 10 The Tower of Babel.
Visit amzsoftech.com Click Here. Type the User name Type the password Click Login First time user Click Sign Up.
Visit amzsoftech.com Click Here. Type the User name Type the password Click Login First time user Click Sign Up.
Visit amzsoftech.com Click Here. Type the User name Type the password Click Login First time user Click Sign Up.
Social Portability and other fun words to type with caps lock on Write once, sort of run everywhere. R. Tyler Ballance Slide, Inc.
Virtual techdays INDIA │ November 2010 Integrating Social Networks with ASP.NET Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys WE.
Washington NFIRS May The WFC began handling customer support July of The WFC changed the submittal process as of January 1 st, 2012 to be.
The experts at getting new customers INFINITE CHANGE PRESENTS.
Looking For Find My Pic App The first mobile app in the world that can help you save,tag,set reminders,save & send your personal pictures just one single.
Developing an d Application s. Chris Kirkland (Founder of The Artists Web) ● Not affiliated with Facebook.
Social Networking Script | PHP Social Network Script | Open Source Social Network PHP |Open Source Social Networking Script.
PHP-language, database-programming
School of Computer Science
Establish, configure and maintain a website/system
Presentation transcript:

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook API Teppo Räisänen School of Business and Information Management

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences FBML and FBJS  API = application programming interface  It is a way to utilize Facebook core features and user data

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences FBML and FBJS  FBML is similar to HTML  FBJS is similar to JavaScript  API-calls are close to PHP-function calls  The reason for that is that we use Facebook’s PHP-API

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API -calls <?php require_once ”facebook.php”; $apikey = ”asdflgasdflkhasdfgasdlfg”; $secret = ”asdf8970adsf70as78asdf”; $facebook= new Facebook($apikey, $secret); $user=$facebook->require_login(); print $user; ?>

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API  API-calls allow developers to utilize Facebook core features and data  “get the user’s friends”  “get/set user’s status”  “Publish data to user’s profile”  “Make a SQL-query to Facebook database”  You don’t have to use them  They do allow more complicated applications!

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API   Facebook is constantly developing the API  The examples here use REST API   Graph API is the new version 

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences REST API  Administrative methods  Handles application and user data  Examples  admin.banUsers  admin.getMetrics  Login/Auth methods  Logins and session handling  Usually you don’t need to use this  Example  auth.expireSession

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences REST API  Data retrieval methods  Data handling  Most often used part of the API  Examples  friends.get, status.get  users.getInfo  Publishing methods  Publish data on profile/home page  Important for viral growth!  Examples  stream.publish  status.set

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences REST API  Facebook Connect methods  For using Facebook Connect  Mobile methods  Sending SMS  Dashboard API methods  Handles dashboard calls  dashboard.addNews  Events API methods  Handles Facebookin events  Events.create  Custom Tags API methods  Handles custom made tag calls

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-calls in PHP  You utilize the API-calls in PHP like this 1.Create a facebook-instance from Facebook class 2.$facebook->api_client->FUNCTION_CALL();

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-calls from PHP $facebook = new Facebook($apikey, $secret); $facebook->api_client-> users_getInfo($user, “first_name”);  Note, that users.getInfo is:  users_getInfo  Usually API-calls return an array

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-calls from PHP $user_details = $facebook->api_client-> users_getInfo($user, 'last_name, first_name’); $firstname=$user_details[0]['first_name']; $lastname=$user_details[0]['last_name']; print “Your name is $firstname $lastname”;

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-call examples Get all $user’s friends: $friends= $facebook->api_client->friends_get($user); Get all $user’s photos: $photos = $facebook->api_client->photos_get($user,'',''); Set status: $facebook->api_client->users_setStatus("facebook coding");

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-calls in PHP  Some API-calls require special permissions  status update  Retrieving data does not usually need permission  bml/prompt-permission/ bml/prompt-permission/  publish_stream, read_stream  , read_mailbox  offline_access  create_event, rsvp_event  sms  status_update  photo_upload, video_upload  create_note  share_item

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences API-calls in PHP You can chech the permission with users.hasAppPermission $facebook->api_client- >users_hasAppPermission('status_update');  Returns 1, is there is permission to status update. 0 if not You can ask permission with fb:prompt-permission FBML- tag: Permit the app to update your status? You can use many permissions at the same time: Permit the app to publish to stream and update your profile?

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences FQL  Facebook Query Language – FQL   Allows SQL-querys to Facebook database  $sql = “SELECT name, pic FROM user WHERE uid= ”;  $results = $facebook->api_client->fql_query($sql);

OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook Tools  Facebook has few tools that can be used to test e.g. FBJS 