万本电子书0元读

万本电子书0元读

顶部广告

Facebook Graph API Development with Flash: Beginner's Guide电子书

售       价:¥

12人正在读 | 0人评论 9.8

作       者:Michael James Williams

出  版  社:Packt Publishing

出版时间:2010-12-14

字       数:146.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This step-by-step book gives you an empty shell of an AS3 Facebook RIA, and guides you through writing the Facebook interaction code by means of fun examples, exercises, and code snippets.This beginner's guide focuses on getting you through all the major learning points in a smooth, logical order. You'll also see how to avoid some common pitfalls. If you are an AS3 developer who wants to create applications and games that integrate with Facebook – either on the Facebook website itself or off it, then this book is for you. Even if you have no previous experience with Facebook, databases, or server-side programming , you can count on this book.
目录展开

Facebook Graph API Development with Flash

Table of Contents

Facebook Graph API Development with Flash

Credits

About the Author

Acknowledgement

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Introduction

What's so great about Facebook?

It's popular

Numbers

It's everywhere

It's interesting to develop for

Have a go hero - get on Facebook

Web hosts

What's a web host?

Why do you need one?

How do you choose one?

Useful software

What about domain names?

Have a go hero - get a web host, upload to it, test

How much AS3 knowledge is required?

The source code

Powered by…

Debugging

Watch out for caching

A final note…

2. Welcome to the Graph

Accessing the Graph API through a Browser

Time for action - loading a Page

What just happened?

Have a go hero - exploring other objects

Accessing the Graph API through AS3

Time for action - retrieving a Page's information in AS3

What just happened?

Time for action - deserializing a JSON object

What just happened?

Time for action - visualizing the info

What just happened?

Understanding connections

Time for action - finding connections in a browser

What just happened?

Have a go hero - exploring connections

Rendering Lists

Time for action - rendering Lists of Posts

What just happened?

Rendering connections

Time for action - displaying a Graph Object's connections

What just happened?

Introducing the Requestor

Time for action - creating an HTTP Requestor

What just happened?

Understanding Connections of Connections

Time for action - loading photos from an album

What just happened?

Putting it all together

Time for action - traversing the Graph

What just happened?

Have a go hero – exploring other areas

Pop Quiz

Summary

3. Let Me In!

What can you see?

Time for action - snooping through other people's accounts

What just happened?

Have a go hero - viewing your privacy settings

What's that got to do with the Graph API?

Access tokens are proof of authorization

User/Application authorization

Time for action - registering an application with Facebook

What just happened?

Application ID + logged-in user = access token

Time for action - requesting an access token with the browser

Registering a redirect URI with our application

Using the Access Token

Me, me, me

What just happened?

Keeping secrets

What did Facebook give us?

Authenticating with AS3

Time for action - Using an access token in our Graph visualizer

That's cheating!

Time for action - authenticating through the application

What just happened?

A different approach

Time for action - authenticating via JavaScript

Creating a callback web page

Receiving the access token

What just happened?

What about users who haven't used the application before?

Have a go hero - dealing with the undecided

Extended permissions

Time for action - obtaining extended permissions

What just happened?

Time for action - requesting extended permissions

Have a go hero - using a permanent access token

I want it all, and I want it now

Have a go hero - dealing with extended permissions

Using the Adobe ActionScript 3 SDK for Facebook platform

Time for action - implementing the SDK

What just happened?

Have a go hero - requesting extended permissions with the SDK

Pop Quiz

Summary

4. Digging Deeper into the Graph

Getting more results with paging

Time for action - displaying the number of objects in a list

What just happened?

Time for action - requesting more Objects

What just happened?

Time for action - requesting more Objects at once

What just happened?

Paging

Time for action - obtaining data in pages

What just happened?

Have a go hero - using limit and offset for other connections

Time for action - adding limit and offset to GraphRequest instances

What just happened?

Date-Based filtering

Time for action - requesting data based on date

What just happened?

Time for action - adding since and until to GraphRequest instances

What just happened?

Time for action - filtering by date using the UI

What just happened?

We gon' partition like it's yo' birthday

Have a go hero - loading birthday wall posts

Date-based paging

Requesting multiple IDs at once

Time for action - using the ids parameter in a Graph URL

What just happened?

Have a go hero - creating a Compound Object based on results from a List

Summary

Pop Quiz

5. Search Me

Using the website's Search box

Time for action - examining quick search results

What just happened?

Time for action - Using the Full Search results

What just happened?

Searching with a Graph URL

Time for action - searching without authorization

What just happened?

Time for action - searching while authorized

What just happened?

Differences

Restrictions

Time for action - implementing a Search window in the Visualizer

What just happened?

Time for action - searching via the SDK

What just happened?

Have a go hero - setting the locale

Searching feeds and wall posts

Time for action - searching your news feed

What just happened?

Time for action - searching a friend's Wall Posts

What just happened?

Time for action - searching feeds through the Visualizer

What just happened?

Summary

Pop Quiz

6. Adding to the Graph

Hello, Facebook!

Time for action - posting to the user's feed

Request methods

What's a request method?

Time for action - using the POST method

What just happened?

Time for action - listening for errors

What just happened?

Time for action - granting the required permission

What just happened?

Time for action - posting via the SDK

What just happened?

Going further with Wall Posts

Time for action - publishing rich posts

What just happened?

Have a go hero

Posting to another Wall

Time for action - posting to another Wall using the Visualizer

Actions, privacy, and source

Actions

Time for action - literally

What just happened?

Privacy

Time for action - setting a Post's privacy settings

What just happened?

Source

Deleting Graph Objects

Time for action - deleting a Post

Time for action - deleting Posts using the Visualizer

What just happened?

Publishing other kinds of Graph Object

Comments

Likes

What about "liking" other Graph Objects?

Deleting Likes

Notes

Events

Event RSVPs

Albums

Photos

Checkins

What about...?

Sending inbox messages

Creating Pages, Groups, Applications, and Videos

Changing biographical information

Making Friends

Inviting Friends to Events

Pop Quiz

Summary

7. FQL Matters

What is FQL?

Understanding the FQL interface

Models of data

Representations of data

Getting information

Time for action - retrieving info from the Page table

What just happened?

Have a go hero - creating an FQL query builder

What about connections?

Photos, Albums, and their Owners

Have a go hero - getting a user's albums

Primary keys

Crow's feet

Have a go hero - drawing your own crows' feet

Link tables

What just happened?

Time for action - getting a user's friends' names with AS3

What just happened?

Time for action - an easier way

What just happened?

Time for action - getting it down to one API call

What just happened?

Have a go hero - Mutual friends

The Graph as a layer

Have a go hero - recreating existing Graph API calls in FQL

Permissions

Checking existing permissions

Getting more information

Restrictions

Searches must use an indexable field

Does this matter in practice?

Advanced FQL

Operators

Comparison

Logical

Have a go hero - getting a list of your events based on location

Have a go hero - finding gatecrashers

Ordering

Paging

Extra functions

Have a go hero - combining what you've learned

Calling multiple queries at once

Pop Quiz

Summary

8. Finishing Off

Putting it online

On Facebook

IFrame

Time for action - setting up an IFrame application

What just happened?

FBML

Page tab

Time for action - adding an application to a Page tab

What just happened?

Off Facebook

Your own website

Flash game portals

As a desktop AIR application

Time for action - authorizing through AIR with HTTP

What just happened?

Time for action - authorizing through AIR with the SDK

What just happened?

As an AIR for Android Application

Time for action - authorizing on Android

What just happened?

Have a go hero - modifying the SDK for Android

Choosing your application's Facebook settings

Getting your application out there

Editing the application's profile page

Have a go hero - creating your application's profile page

Custom tabs

The Facebook Application Directory

Watch out for these policies!

What next?

The Official AS3 Facebook SDK

Other Facebook APIs

JavaScript SDK

Insights API

Facebook Chat API

Internationalization API

Adobe Social service

Related Technologies

PHP

Open Graph Protocol

Real-Time Updates

Brand new and coming soon

Facebook Credits

Test users

The New Messages

Facebook developer resources

Official Facebook resources

Other great websites

Me, me, me

Keeping up with the Zuckerbergs

Dealing with change

Summary

A. Pop Quiz Answers

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Chapter 7

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部