• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Face Behind Facebook
 

The Face Behind Facebook

on

  • 3,788 views

A presentation for my online programming class at USC Upstate. It's an overview of the Facebook as a development platform with a sample Hello World application.

A presentation for my online programming class at USC Upstate. It's an overview of the Facebook as a development platform with a sample Hello World application.

Statistics

Views

Total Views
3,788
Views on SlideShare
3,739
Embed Views
49

Actions

Likes
3
Downloads
71
Comments
0

6 Embeds 49

http://www.umangsonthalia.com 23
http://www.slideshare.net 19
http://www.tumblr.com 3
http://posterous.com 2
http://boutofcontext.com 1
http://umangsonthalia.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    The Face Behind Facebook The Face Behind Facebook Presentation Transcript

    • Behind the Face of Facebook
      Cory Bohon
      SCSC 450
      April 20, 2010
    • What We’re Talking About
      • What Makes Facebook Tick
      • Background of Facebook Apps
      • Developing Facebook Apps
      • Create a “Hello World” Facebook App
    • Why Make Facebook Apps?
      • Integration with a strong platform
      • Ability to access user information
      • Strong API (Application Programming Interface)
      • Large distribution area
      • Over 400 million active users
      • Average User Spends 55 Minutes/Day on FB
      • Massive Opportunities
      • More than 70% of FB users use the third-party applications
      • More than 250 apps have more than 1 million active users
      • Facebook and resulting apps becoming viral
      Source: Facebook | Statistics (http://www.facebook.com/press/info.php?statistics)
    • What Makes Facebook Tick
      • Background: Facebook was started in 2004 by Mark Zuckerberg while attending Harvard University1 and was originally called “The Facebook”
    • What Makes Facebook Tick
      • Behind the scenes: Facebook runs a LAMP configuration
      • LAMP = Linux, Apache, MySQL, PHP/Perl1
      • Facebook is the most popular website with 7.07% of all U.S. Internet traffic going to the social networking service -- this is followed by Google at 7.03%2
      • Backend services and functions are written in C++, Java, Python, and Erlang1
      Sources: 1 Wikipedia: Facebook (http://wikipedia.org/wiki/Facebook), 2 Hitwise via TechCrunch (http://techcrunch.com/2010/03/15/hitwise-says-facebook-most-popular-u-s-site/)
    • What Makes Facebook Tick
      Can you identify the back-end programming languages Facebook uses?
      def hello():
      print "Hello World!"
      return
      -module(hello).-export([start/0]).start() ->spawn(fun() -> loop() end).loop() ->receivehello ->io:format("Hello, World!~n"),loop();goodbye ->okend.
      #include <iostream>
      int main()
      {
      std::cout << "Hello, world! ";
      return 0;
      }
      class myfirstjavaprog
      {
      public static void main(String args[])
      {
      System.out.println("Hello World!");
      }
      }
    • What Makes Facebook Tick
      Can you identify the back-end programming languages Facebook uses?
      def hello():
      print "Hello World!"
      return
      -module(hello).-export([start/0]).start() ->spawn(fun() -> loop() end).loop() ->receivehello ->io:format("Hello, World!~n"),loop();goodbye ->okend.
      Python >
      C++ >
      #include <iostream>
      int main()
      {
      std::cout << "Hello, world! ";
      return 0;
      }
      class myfirstjavaprog
      {
      public static void main(String args[])
      {
      System.out.println("Hello World!");
      }
      }
      ^Erlang Java >
    • Background of Facebook Apps
      • Facebook apps let developers expand on the many uses for Facebook
      • Games like Farmville, Petville, Café World, and others entice users to stay on the social networking service, therefore allowing developers and Facebook alike to make money through advertisements
      • Facebook apps originally launched in early summer 2007
    • Developing Facebook Apps
      • These applications are generally written in PHP with a MySQL backend
      • The scripts (or “apps”) are written and stored on a development server (Not on Facebook)
      • The Facebook application model gives developers freedom in creating applications because they are not hosted on the Facebook
      • Developers retrieve information from Facebook by using the Facebook API (Application Programming Interface)
      • The FBML (Facebook Markup Language) provides shortcuts for retrieving and displaying information.
    • Developing Facebook Apps
      • To get started with Facebook development, you add an application to your profile called “Facebook Developers” This group gives you access to setting up a new application
      • There are two key things you need in order to start development:
      API Key and Application Secret – These two keys provide you with access to the Facebook APIs and services. The Application Secret is used to track your application.
      The Facebook Client PHP Library – A set to PHP files (classes and libraries) that are stored on your server. Your script will access these files which will in turn connect to the Facebook API.
    • Developing Facebook Apps
      Once you have developer access and a development server with appropriate files setup, you’re able to begin development.
    • The “Hello World” Facebook Application
      <?php
      require_once 'facebook.php';
      $appapikey = ‘XXXXXXXXXXXXXXXXXXXXXXXXXXXX’;
      $appsecret = ‘XXXXXXXXXXXXXXXXXXXXXXXXXXXX’;
      $facebook = new Facebook($appapikey, $appsecret);
      $user_id = $facebook->require_login();
      echo "<p>Hello, <fb:nameuid="$user_id" useyou="false" />!</p>";
      echo "<p>Friends:";
      $friends = $facebook->api_client->friends_get();
      $friends = array_slice($friends, 0, 25);
      foreach ($friends as $friend) {
      echo "<br>$friend";
      }
      echo "</p>";
      ?>
      1.
      2.
      3.
      4.
      5.
      6.
      7.
      8.
      9.
      10.
      11.
      12.
      13.
      14.
      15.
      16.
      17.
      18.
      19.
      20.
    • Open_demo();
      Demo
    • Questions and Answers
      Question 1: What is the architecture Facebook is based on and what is the front-end programming language?
      Answer: LAMP and PHP
      Question 2: How many active users does Facebook have and what percentage of web traffic does Facebook represent?
      Answer: 400 million and 7.07%
      Question 3: What are the four programming languages that are used for the back-end services on Facebook?
      Answer: C++, Java, Python, and Erlang
    • Questions and Answers
      Question 4: When did Facebook launch third-party applications and what is used to create applications?
      Answer: Launched in 2007; the “Facebook Developers” group
      Question 5: What two key things do you need to have in order to develop Facebook applications and what do they do?
      Answer: A API Key, Application Secret and the Facebook Client PHP Library
    • Close_connection();
      Additional Questions?