Amin Bandeali

The function of good software is to make the complex appear to be simple. - Grady Booch

About
  • Amin Bandeali
  • Amin Bandeali
  • Software Entrepreneur in Medical Systems, Cloud Computing Evangelist, Lead Generation, Lead Trading, Architect in Social Media and Marketing. Skills - Java, C#, PHP, Ruby, Scala, SQL, Project Management.

    mindplex media logo


    Follow aminbandeali on Twitter
    SpireCloud
    Clear Visage
    Solar Voice
    Health Conducive


    Amin Bandeali


    TwitterCounter for @aminbandeali



    View Amin Bandeali's profile on LinkedIn


       
Subscribe via posterous »
Unsubscribe »
Subscribe via RSS »
  • Posts tagged api
  • Explore api on posterous
  • Edit
  • Delete
  • Autopost
  • Posted

Facebook Graph API - The Future Of Semantic Web?

The new Graph API attempts to drastically simplify the way developers read and write data to Facebook. It presents a simple, consistent view of the Facebook social graph, uniformly representing objects in the graph (e.g., people, photos, events, and fan pages) and the connections between them (e.g., friend relationships, shared content, and photo tags).

Every object in the social graph has a unique ID. You can fetch the data associated with an object by fetching https://graph.facebook.com/ID. For example, the official page for the Facebook Platform has id 19292868552, so you can fetch the object at https://graph.facebook.com/19292868552:

{
   "name": "Facebook Platform",
   "type": "page",
   "website": "http://developers.facebook.com",
   "username": "platform",
   "founded": "May 2007",
   "company_overview": "Facebook Platform enables anyone to build...",
   "mission": "To make the web more open and social.",
   "products": "Facebook Application Programming Interface (API)...",
   "fan_count": 449921,
   "id": 19292868552,
   "category": "Technology"
}

Alternatively, people and pages with usernames can be fetched using their username as an ID. Since "platform" is the username for the page above, https://graph.facebook.com/platform will return what you expect. All responses are JSON objects.

All objects in Facebook can be accessed in the same way:

  • Users: https://graph.facebook.com/btaylor (Bret Taylor)
  • Pages: https://graph.facebook.com/cocacola (Coca-Cola page)
  • Events: https://graph.facebook.com/251906384206 (Facebook Developer Garage Austin)
  • Groups: https://graph.facebook.com/2204501798 (Emacs users group)
  • Applications: https://graph.facebook.com/2439131959 (the Graffiti app)
  • Status messages: https://graph.facebook.com/367501354973 (A status message from Bret)
  • Photos: https://graph.facebook.com/98423808305 (A photo from the Coca-Cola page)
  • Photo albums: https://graph.facebook.com/99394368305 (Coca-Cola's wall photos)
  • Videos: https://graph.facebook.com/614004947048 (A Facebook tech talk on Tornado)
  • Notes: https://graph.facebook.com/122788341354 (Note announcing Facebook for iPhone 3.0)

All of the objects in the Facebook social graph are connected to each other via relationships. Bret Taylor is a fan of the Coca-Cola page, and Bret Taylor and Arjun Banker are friends. We call those relationships connections in our API. You can examine the connections between objects using the URL structure https://graph.facebook.com/ID/CONNECTION_TYPE. The connections supported for people and pages include:

  • Friends: https://graph.facebook.com/me/friends
  • News feed: https://graph.facebook.com/me/home
  • Profile feed (Wall): https://graph.facebook.com/me/feed
  • Likes: https://graph.facebook.com/me/likes
  • Movies: https://graph.facebook.com/me/movies
  • Books: https://graph.facebook.com/me/books
  • Notes: https://graph.facebook.com/me/notes
  • Photos: https://graph.facebook.com/me/photos
  • Videos: https://graph.facebook.com/me/videos
  • Events: https://graph.facebook.com/me/events
  • Groups: https://graph.facebook.com/me/groups

We support different connection types for different objects. For example, you can get the list of all the people attending the Facebook Developer Garage at SXSW (ID #331218348435) by fetching https://graph.facebook.com/331218348435/attending.

All of the different types of objects and connections we support are included in the Graph API reference documentation.

Contents

  • Selection
  • Introspection
  • Authorization
  • Publishing to Facebook
  • Deleting Objects
  • Pictures
  • Paging
  • Search
  • Real-time Updates
  • Analytics
  • Documentation
via developers.facebook.com

The Web is moving to a model based on the connections between people and all the things they care about. This is the future of the online world we live in.

Tagged api facebook
Comments (0) Add A Comment
Tags
  • Programming (8)
  • Programming Languages (5)
  • video (4)
  • c# (3)
  • Java (3)
  • los angeles (3)
  • Ruby-on-rails (3)
  • apple (2)
  • asp.net (2)
  • authentication (2)
  • azure (2)
  • baby-care (2)
  • calendar (2)
  • cloud computing (2)
  • Electronic (2)
  • View all 125 tags »
  • facebook (2)
  • federated authentication (2)
  • fire (2)
  • funny (2)
  • google (2)
  • history (2)
  • mac (2)
  • Music (2)
  • oauth (2)
  • ramadan (2)
  • ramazan (2)
  • schedule (2)
  • twitter (2)
  • 2009 (1)
  • 2010 (1)
  • api (1)
  • architect (1)
  • ashura (1)
  • atm (1)
  • Azadi (1)
  • benny (1)
  • best websites (1)
  • Career Planning (1)
  • careers (1)
  • cartoon (1)
  • cats (1)
  • cloud (1)
  • Coldfusion (1)
  • commercial (1)
  • Communication (1)
  • crisis (1)
  • customer service (1)
  • delegated (1)
  • development (1)
  • di (1)
  • Django (1)
  • dns (1)
  • doll (1)
  • donation (1)
  • Downtown (1)
  • Dyanamic (1)
  • Dynamic (1)
  • emotion (1)
  • emotional (1)
  • flood (1)
  • football (1)
  • football-hold (1)
  • google chrome (1)
  • google dns (1)
  • google sergey brin (1)
  • google wave (1)
  • guide (1)
  • help (1)
  • hold (1)
  • home (1)
  • how-to (1)
  • image (1)
  • infographic (1)
  • internet (1)
  • ioc (1)
  • iphone (1)
  • Iran (1)
  • java collections (1)
  • joke (1)
  • joshbloch (1)
  • LA Live (1)
  • lambda (1)
  • language (1)
  • Maintenance (1)
  • map (1)
  • markup (1)
  • microsoft (1)
  • model view controller (1)
  • money (1)
  • muharram (1)
  • mvc (1)
  • .net (1)
  • openapi (1)
  • openid (1)
  • open-source (1)
  • Pakistan (1)
  • photo (1)
  • photography (1)
  • php (1)
  • picture (1)
  • Headline by Airspace Workshop for Posterous
  •         14359 site views