Your SlideShare is downloading. ×
Facebook 3rd Party Api
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Facebook 3rd Party Api


Published on

How to develop facebook applications

How to develop facebook applications

Published in: Technology, Business

1 Comment
No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. facebook 3 rd part API
  • 2. Overview
    • Facebook Introduction
    • Facebook API capabilities
    • Facebook application types
    • Facebook language support
    • Facebook & Microsoft
  • 3. Facebook Introduction
    • Facebook - social service enabling people to share and connect
    • Facebook allows you to search for your friends co-workers and anyone you know.
    • Facebook is an easy to use and manage, web 2.0 application.
    • Facebook allows any user to build it’s own applications using the benefits of their social grid.
    • More than that, Facebook architecture causes a mass distribution of your applications.
  • 4. Facebook API Capabilities
    • facebook API allows you to access any relevant information the user exposes to your application.
    • facebook gives you access to profiles, friends, photos, groups, and much more.
    • FQL - Facebook Query Language
    • facebook API allows you to perform queries on their DB by writing queries. FQL queries syntax is similar to SQL queries.
    • FBML - Facebook Markup Language - similar to HTML syntax. Provides easily integration with facebook platform.
  • 5. Facebook Application types
    • There are three main application types Facebook supports:
      • External Desktop Application .
      • External Web Application.
      • Internal Facebook Application.
    • These three types of applications allows you, the developer, to bind Facebook data to any application you’re writing.
  • 6. Facebook Language support
    • Facebook officially supports PHP 4/5 and Java client libraries
    • Facebook partnered with Microsoft to support .Net applications
    • Facebook API language support includes:
      • ActionScript
      • Cocoa
      • ColdFusion
      • Perl
      • Python
      • Ruby
  • 7. Facebook & Microsoft
    • Facebook has a .Net library containing all you need, as a developer, for using Facebook through your desktop or web application.
    • The .Net library contains Desktop controls, Web controls, Facebook
    • Microsoft also supports Facebook with their PopFly application that allows the developer easily build an application.
  • 8.
    • Developing facebook application
  • 9. Adding new application
    • Opening a new application
    • For external application: In the callback URL you enter the URL of your application.
    • For internal application you need to enable the “Can your application be added on Facebook?” selection.
    • Fill your application URLs in the added fields.
    • After completing the registration you get API key and Secret strings to use in your application.
  • 10. Code Review
    • At your website project, Add reference to Facebook.dll and to Facebook.WebControls.dll.
    • At the .cs code file write the following:
    • new protected void Page_Load(object sender, EventArgs e)
    • {
    • base.Api = “Your Application key”; //Inform which application to use.
    • base.Secret = “Your Application Secret”; //Added encryption for security.
    • base.Page_Load(sender, e); //must be called
    • if (!IsPostBack) {
    • //Use Facebook API to pull data from Facebook.
    • Facebook.Entity.User user = this.FBService.GetUserInfo();
    • Collection<Facebook.Entity.User> friends = this.FBService.GetFriends();
    • }
    • }
  • 11. Code Review (contd.)
    • Now we can use the data from Facebook in our application.
    • Let’s first build a simple page in ASP.Net
    • This page declares two labels that will be rendered in the server-side, and a link to another page.
    • Pay attention to the ID attr. of the asp:labels, we will use these IDs now.
  • 12. Code Review (contd.)
    • Now we need to insert the data we pulled from Facebook platform into our web page.
    • lblHelloWorld.Text = &quot;Hello &quot; + user.Name + &quot; you have &quot; + friends.Count + &quot; friends + &quot;...&quot; + this.FBService.SessionKey;
    • this.FBService.SetFBML(&quot;Hello &quot; + u.Name + &quot; you have &quot; + f.Count + &quot; friends”);
    • //Set FBML method sets an FBML string to the profile page.
    • lblDashboard.Text = &quot;<fb:dashboard><fb:action href=&quot;;>
    • Go to Default3
    • </fb:action></fb:dashboard><br/>&quot;;
    • //Sets FBML dashboard element to the applcication
    • That’s all you need to create an application
  • 13. DSP-IP Contact information For Course materials & lecture request contact: For projects development services contact:
      • Adi Yakov
      • Training and Courses Manager
      • [email_address]
      • +972-9-8651933 Mail : [email_address] Phone: +972-9-8850956, Fax : +972-50- 8962910
      • Alona Ashkenazi
    • Technology Management Services : [email_address] +972-9-8850956