Facebook Application Development with Graph API Cookbook and over one million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime free trial required. Sign up when you check out. Learn more
More Buying Choices
Have one to sell? Sell yours here
or
Get a £14.65 Amazon.co.uk Gift Card
Facebook Application Development with Graph API Cookbook
 
 
Start reading Facebook Application Development with Graph API Cookbook on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Facebook Application Development with Graph API Cookbook [Paperback]

S Srivastava , A Singh
2.0 out of 5 stars  See all reviews (2 customer reviews)
RRP: £27.99
Price: £26.59 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.40 (5%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.
Want guaranteed delivery by Wednesday, May 30? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £14.00  
Paperback £26.59  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Plus, get an extra £5 Gift Certificate when you trade in books worth £10 or more before June 30, 2012. Visit the Books Trade-In Store for more details.


Product details

  • Paperback: 350 pages
  • Publisher: PACKT PUBLISHING (16 Nov 2011)
  • Language English
  • ISBN-10: 1849690928
  • ISBN-13: 978-1849690928
  • Product Dimensions: 23.5 x 19 x 1.9 cm
  • Average Customer Review: 2.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 1,050,108 in Books (See Top 100 in Books)

Product Description

Product Description

With a user base of nearly 800 million people, Facebook is the number one social networking platform. Applications can be created to interact with this huge user base in various ways both inside and outside Facebook. These applications, if developed effectively and efficiently, offer a free medium for promotion and publicity of a product or an organization.

Facebook Application Development with Graph API Cookbook covers both the concepts and implementations necessary to develop Facebook applications and provides ready to use code for common scenarios faced by a developer while creating these applications. It incorporates the newly launched Facebook Graph API and also presents the reader with some intuitive ready to use applications.

This book guides the reader step by step, from start to finish, through various stages of Facebook application development. It begins by exploring the Facebook application registration and discussing the verification and authentication technique. It then takes you through the various ways in which you can use Facebook Graph API for interacting with users such as posting on a user’s wall, tagging a user in a picture, etc. Accessing complex Facebook user data by formulating a series of queries, doing client side scripting and incorporating Facebook Dialog interface are some other features that have been incorporated in this book. Integration of various Facebook Social Plugins such as the like box in your web page has also been discussed. Further you will get to know the concept of virtual currency and how to programmatically derive Facebook analytics data. As the book progresses, you will learn to use and integrate many more advanced features in Facebook application development. The book contains ready to use code that can be deployed instantly. Towards the end, the book houses a variety of ready to use Facebook applications so as to help readers derive their own applications from them.

About the Author

Shashwat Srivastava


Shashwat Srivastava has been an avid coder since high school and has acquired technical proficiency in various programming languages with over 12 years experience. He is a strong advocate of open source tools and hosts his projects at SourceForge. He has successfully participated in Google Summer of Code Programs 2010 and 2011. He graduated as Bachelor in Electronics and Communication from Delhi College of Engineering in 2011. During his college days, Shashwat published websites for several clients including his college library and electronics department. Currently, he is working as an application developer at Oracle. He actively contributes to Drupal and has developed modules such as DrupalChat, DXMPP and Chatroom. His keen interest lies in web application development and as a result he has built several Facebook and Twitter applications. Passionate about programming he loves to blog about PHP, JavaScript, MySQL, Linux, Android and other insanities at botskool.com. When unplugged, he enjoys playing chess and computer games.


Apeksha Singh


Apeksha Singh is a software engineer and an open source hobbyist and enthusiast. She has recently graduated as a Computer Science Engineer from Jaypee Institute of Information Technology and has extensive experience in web development and search engine optimization. She has authored articles and research papers in these fields. She has programming experience of seven years and loves data structure. Obsessed with new technology, Apeksha keeps track of the latest developments in the tech world and likes to update others and share her views by blogging at botskool.com. She has also worked in the field of embedded systems and robotics. In her free time, she reads novels and plays sports such as badminton and tennis. She can be reached at her personal blog - apeksha0701.blogspot.com.


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
(1)
(2)

Your tags: Add your first tag
 

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
4 star
0
2 star
0
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
Format:Paperback
The information contained in the book is obsolete. None of the examples (I am just at chapter 1, the basis) will work with the last php sdk.
This book has been printed and is sold in BAD FAITH.
Was this review helpful to you?
1 of 1 people found the following review helpful
Format:Paperback
This book lives up to its expectations as a cookbook, providing simple and well explained examples with easy implementation steps. The chapters are well organized for easy reference to specific tasks.

Since the code samples are in PHP, Facebook app developers who program in other languages (e.g. C#, Java, Python, Ruby) may need to consult PHP tutorials to get up to speed.

With Facebook's API changing every so often, this book could have been the most up-to-date resource for Facebook app developers. But it seems the authors have not caught up, as there were snippets of code that are deprecated or no longer work. I do hope the authors post corrections in the errata in a timely manner, as I look forward to these updates.

One last thing, this book is meant to reinforce, not replace, the official Facebook API documentation.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  10 reviews
6 of 6 people found the following review helpful
Deprecated 6 Feb 2012
By Xavi - Published on Amazon.com
Format:Paperback
This book is totally useless, uses the old facebook api and the code is totally deprecated even the registering an application part is wrong. I though that beeing published on november 2011 the book would had been updated but it wasn't so it's like throwing your money to the garbage... as someone said, the good review shuld be before the change or the author himself.
3 of 3 people found the following review helpful
Perfect assistance in building Facebook applications 29 Dec 2011
By michaels - Published on Amazon.com
Format:Paperback
Today (December 29, 2011), I have finished reading the book `Facebook Application Development with Graph API Cookbook'. This is a great resource for developers who are interested in building Facebook applications.

There's no special knowledge required to read this book. Every (web) developer with a basic understanding of computer programming should be able to benefit from it. However, if you want to run the examples (recipes), you should already know your way around web development in the areas of at least HTML, JavaScript and (preferably) PHP.

---

This is what the book covers:

Chapter 1. Creating a New Facebook Application - You will learn how to prepare your environment, and all the necessary steps to set up your first Facebook application. If you've never registered a Facebook application before, this step-by-step recipe will help you (and save you a lot of time!).

Chapter 2. Be a part of Social Graph - This chapter is great in teaching you the basics of the Open Graph concept. You will find examples of the most commonly encountered tasks. If you're looking for an easy way to interact with the Open Graph, just use the Graph API Explorer (available at [...])

Chapter 3. Querying Facebook - You will learn how to use FQL, Facebook's own query language. Read carefully, and you will notice some powerful queries that are not possible via Open Graph calls.

Chapter 4. Using FB Script - Download the JavaScript SDK and start implementing cool client-side scripts. You can use the JavaScript API for both: Graph API calls and FQL.

Chapter 5. Expressing Yourself - This chapter will show you how to use dialogs for requesting permissions, adding friends and more.

Chapter 6. Bringing Facebook to your Website - You will learn about the most frequently used Social Plugins (e.g. Like Box, Send Button). It covers most commonly used XFMBL tags.

Chapter 7. Connecting Websites to the Social Graph - If you want your website to benefit from Facebook, you have to make sure that your website becomes part of the Open Graph. You will learn how to do it, by using special meta tags.

Chapter 8. Fiddling with Virtual Currency - This chapter is about Facebook credits and how to integrate it in your application. You can use the Facebook Credits API to handle transactions. After reading this chapter, you will be amazed about how mature the Facebook platform is.

Chapter 9. Creating Advertisements and Analyzing Metric Data - Facebook Insights provides useful information regarding the way users interact with your application. This chapter might help you to think of new opportunity on how to benefit from a commercial Facebook application

Chapter 10. Creating Instant Applications - You will learn how to build a couple of applications from scratch. PHP programmers will probably benefit the most from this chapter.

Chapter 11. Using Facebook Open Graph Beta - This chapter is about Facebook's newly lounged Timeline and Open Graph Beta. Learn how to add your own Objects, Actions and Aggregations to the Open Graph.

----

This book does exactly what it says: Quick answers to common problems. You can simply pick any topic from index, and jump right into the recipe!

There are basically two ways how to exchange data with Facebook, either by using FQL (Facebook Query Language) or by hacking into the Open Graph (Graph API calls). Both methods are well covered in the book.

Whenever you exchange data with Facebook, you need to be aware of the required user permissions that apply. This book does a great job in providing a clear overview of permissions that apply in every recipe.

Throughout this book you will also learn how to optimize you applications for better performances, for example by using multi queries or batch requests.

The book is easy to read, and you don't necessarily have to go through it sequentially. Although most examples are in PHP, it's quite easy to modify the code to fit in your own programming language of choice. As a C# developer, I simply downloaded the C# SDK via the Facebook developer's site

Tip: since the Facebook API changes a lot, you should frequently check the online forum and documentation (on the Facebook developer's site) to stay up to date with changes.

If you want to build (your first) Facebook applications, this is a must have! I can also recommend this book to developers who want a broader overview of the Facebook platform and its opportunities.
2 of 2 people found the following review helpful
Facebook Application Development with Graph API Cookbook 27 Dec 2011
By bbelderbos - Published on Amazon.com
Format:Paperback
I just finished reading Facebook Application Development with Graph API Cookbook. It provides over 90 recipes to create web apps with the Facebook API. The variety of topics and the amount of practical code examples makes it a useful reference for the FB API developer.

The book is structured as follows:

The first 3 chapters are a basic introduction how the API works: get the PHP SDK, set up your first (canvas) app, interacting with the social graph and how to query Facebook.
Chapters 4-6 focus on Javascript: chapter 4 introduces the JS SDK, chapter 5 is about Facebook Dialogs, and chapter 6 deals with the various social plugins from Facebook that you integrate on your site (like button, activity feed, etc).
Chapters 7-9 show a bit more advanced topics: integrating web pages (chapter 7), virtual Facebook currency to actually earn money through Facebook (chapter 8) and advertising / metrics data (chapter 9).
Chapter 10 is the most fun: it shows some complete Facebook apps you can build with the API
Chapter 11 is bonus and important moving forward: it shows the Open Graph Beta that was presented several months ago at Facebook's G8.

Code samples
I didn't have time to play with all the code samples yet, but they form a great resource for both new developers wanting to get to know the framework, as well as the intermediate/advanced developer that wants to enhance his/her skills.

Writing a FB API book is more than challenging knowing that the platform is updated very often. I found my FB apps broken this week because I didn't anticipated the oauth2 change that went live (announced on the Facebook developers blog). This might be an issue with the code samples, because I didn't see the "oauth: true" in the FB.init calls, which was the change I had to put into my apps last weeks to make them work again (more info about the fix here). Another example is the depricated $facebook->getSession() on page 15 of the book (now: $facebook->getUser() in PHP SDK 3.1) which I spotted on the author's blog post comments.

This seems inevitable, and it means you need to be prepared to have the API documentation at hand and tweak (but hey ... isn't this the best way to learn anyway?). As the book is from November this year, there won't be many of these issues, but in 1 or 2 years time there might be, so probably it would be a good idea to release an updated version of the book by then.

Kudos to the author for the amount of samples. I also think he did a good job of explaining them, and adding other technologies like PHP GD (image creation) and jQuery to pretty up the examples.

Writing style and structure
The book is easy to read/follow. It goes through the concepts in a logical order, building new examples upon previous ones. It is not necessary to read it sequentially though. There are backreferences to prerequisites, so with some experience you can easily jump in anywhere. As with most of Packt's cookbooks the structure for each recipe is: "get ready -> how to do it -> how it works -> references", as with Yii's cookbook, this worked pretty well for me. It allows for both quick scanning of code (after all a cookbook really is a reference work) as well as detailed study of the examples.

Open graph
I liked the fact that the author paid some attention to the Open Graph Beta. I still have to develop my first App in it, and from what I've seen (Spotify, reading apps), it seems the way forward! Trivia: I actually contacted the author several weeks ago that I was going to read/review his title, asking him if he had seen the G8 conf and thus if he could do a chapter on the OG Beta. I got a prompt response and I am glad he put it in :)

Learning by doing
From a personal view, learning the FB API is about practicing, writing code, play with the PHP / JS SDKs and many methods the FB API has. The many examples suits this purpose well. Again, things change fast at Facebook, and usually announcing it on their blog, so if you are developing FB apps, follow the developers blog and use this book as reference making sure you also check the latest API docs.

Conclusion
I found the content and the way it is presented very useful. Although the book is brand new, there are already some recent changes in both PHP and JS SDKs that might affect the code. So make sure you check the FB API documentation.

The advantage of this book over the API docs, is the structured format to learn the subject and clear explanations. It covers a wide range of topics in a reasonable size of 340 pages, including interesting advanced topics like virtual currency, advertising and metrics. The book's samples show a strong integration with the social graph (the real API's strength!), and a chapter on the way forward: the Open Graph Beta.

So I can recommend this title to every developer that works with the Facebook API.
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges