Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Understanding Graph API — or Facebook Development — Syntax

Part of the Facebook Application Development For Dummies Cheat Sheet

Understanding the basic syntax of Facebook's Graph API is all you need to get started in Facebook development. Graph API's simple syntax is this:

  • Domain: This will always be https://graph.facebook.com/

  • Object: This can be any object on Facebook. You can choose a user name or id of an object. This can be a user, a Page, an event, a post — any single item on Facebook with an ID should work in this field.

  • Connection: After the object, you may specify elements of that object you would like to retrieve. This can be a feed or friends list, for example. Use metadata=1 as a parameter to learn what connections are available to the object you are accessing.

  • Parameters: Here you can specify specific parameters to return nuanced data from Facebook. Use the fields parameter, for instance, to designate what fields should be returned.

Now type these sample Graph API calls into your browser. You will quickly learn how easy it is to get started using Graph API!:

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!