Facebook api
Download
1 / 15

Facebook API - PowerPoint PPT Presentation


  • 405 Views
  • Uploaded on

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. If you don’t use a client library then will have to do the following for each method call: Construct a signature

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Facebook API' - Lucy


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Facebook api l.jpg

Facebook API

Kelly Orser


Client libraries l.jpg
Client Libraries

  • Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.

  • If you don’t use a client library then will have to do the following for each method call:

    • Construct a signature

    • Create and send a HTTP POST request

    • Parse the XML result of the request


Example clients l.jpg
Example Clients

  • Facebook Clients

    • PHP5

    • Java

  • Independent Clients

    • ActionScript

    • Cocoa

    • PHP4

    • Ruby

    • Python

    • VB.NET


Methods l.jpg
Methods

  • The facebook API currently has 20 methods that can be used to get information from facebook accounts.


Authentication l.jpg
Authentication

  • facebook.auth.createToken

    • creates an auth_token to be passed in as a parameter to login.php

  • facebook.auth.getSession

    • returns the session key bound to an auth_token


Facebook query language l.jpg
Facebook Query Language

  • Facebook.fql.query

    • FQL is a way to query the same facebook data you can access through the other API functions, but with a SQL style interface.

    • SELECT name, affiliations FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=211031) AND "Facebook" IN affiliations.name AND uid < 10


Events l.jpg
Events

  • facebook.events.get

    • returns all visible events according to the filters specified

  • facebook.events.getMembers

    • returns membership list data associated with an event


Friends l.jpg
Friends

  • facebook.friends.areFriends

    • returns whether or not each pair of specified users is friends with each other

  • facebook.friends.get

    • returns the identifiers of the current user’s Facebook friends

  • facebook.friends.getAppUsers

    • returns the identifiers of the current user’s Facebook friends who are currently signed in


Groups l.jpg
Groups

  • facebook.groups.get

    • returns all visible groups according to the filters specified

  • facebook.groups.getMembers

    • returns membership list data associated with a group


Notifications l.jpg
Notifications

  • facebook.notifications.get

    • returns information on outstanding Facebook notifications for current session user.

    • such as messages, friend requests, pokes, group invites and event invites


Photos l.jpg
Photos

  • facebook.photos.addTag

    • adds a tag with the given information to a photo

  • facebook.photos.createAlbum

    • creates and returns a new album owned by the current session user

  • facebook.photos.get

    • returns all visible photos according to the filters specified


Photos12 l.jpg
Photos

  • facebook.photos.getAlbums

    • returns metadata about all of the photo albums uploaded by the specified user

  • facebook.photos.getTags

    • returns the set of user tags on all photos specified

  • facebook.photos.upload

    • uploads a photo owned by the current session user and returns the new photo


Users l.jpg
Users

  • facebook.users.getInfo

    • returns the information in a users profile

  • facebook.users.getLoggedInUser

    • gets the user id associated with the current session


Responses l.jpg
Responses

  • Each of these methods can have a different response format depending on what you are programming in.

    • JSON (JavaScript Object Notation)

    • XML

    • Facebook PHP Client


Links l.jpg
Links

  • Facebook Developers

  • Client Libraries

  • Facebook Applications

  • Test Console


ad