万本电子书0元读

万本电子书0元读

顶部广告

Flash Facebook Cookbook电子书

售       价:¥

10人正在读 | 0人评论 9.8

作       者:James Ford

出  版  社:Packt Publishing

出版时间:2011-08-25

字       数:892.7万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Written in a cookbook style, this book offers solutions using a recipe-based approach. Each recipe contains step-by-step instructions followed by an analysis of what was done in each task and other useful information. This Cookbook is targeted towards those with at least a basic understanding of the Flash Builder IDE and the Flex framework. No prior knowledge of the Facebook APIs is assumed or required. If you want to start building Flash Facebook apps quickly and effectively this is the book for you.
目录展开

Flash Facebook Cookbook

Table of Contents

Flash Facebook Cookbook

Credits

About the Author

Acknowledgement

About the Reviewers

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

Downloading the example code for this book

Errata

Piracy

Questions

1. Getting Started with Flash and Facebook

Introduction

Setting up a new application on Facebook

Getting ready

How to do it...

How it works...

There's more...

See also

Downloading the Facebook ActionScript 3 SDK

Getting ready

How to do it...

How it works...

There's more

The Flash Player version, or the AIR version of the SDK?

What if I want to build my own Facebook library?

See also

Including the Facebook ActionScript 3 SDK in a Flash Builder project

How to do it...

How it works...

There's more...

Linking source files to an included SWC

See also

Including the Facebook ActionScript 3 SDK as a Flash Builder library project

How to do it...

How it works...

There's more...

See also

Preparing your Flash Player application's HTML template for Facebook integration

Getting ready

How to do it...

How it works...

There's more

Testing and debugging our Flash Builder project locally

Where can users access our Facebook application from?

Setting up a Canvas or Tab application on Facebook.com

Working without the JavaScript SDK?

See also

2. Authenticating with Facebook

Introduction

It's all about Access tokens

Authentication with the Web SDK, for Flash Player applications

Getting ready

How to do it...

How it works...

There's more...

Automatic authentication with Facebook

When should we launch the Login Dialog?

The "options" parameter

See also

Authentication with the Desktop SDK, for AIR applications

Getting ready

How to do it...

How it works...

There's more...

How does the pop-up window work?

See also

Logging out of Facebook

Getting ready

How to do it...

How it works...

There's more...

See also

Retrieving information about the current session and active Facebook user

Getting ready

How to do it...

How it works...

There's more...

Problems with the available permissions or the user object?

See also

Reacting to external session changes and JavaScript events

Getting ready

How to do it...

How it works...

There's more...

Other events from Facebook

Is your user connected, not connected, or unknown?

See also

3. Working with Facebook Permissions

Introduction

Requesting permissions at login

Getting ready

How to do it...

How it works...

There's more...

Using the ExtendedPermission class, instead of using hardcoded permission names

See also

Checking for existing Extended Permissions

Getting ready

How to do it...

How it works...

There's more...

Using the ExtendedPermission class constants to generate our FQL request

What about FacebookSession.availablePermissions?

See also

Requesting additional Extended Permissions, following a failed API request

Getting ready

How to do it...

How it works...

There's more...

Checking if a failed API request is caused by (a lack of) Extended Permissions

See also

Pre-emptively requesting additional Extended Permissions

Getting ready

How to do it...

How it works...

There's more...

See also

4. Reading and Writing Data with the Graph API

Introduction

Building a 'Test console' for the Graph API

Getting ready

How to do it...

How it works...

There's more...

Using an animation to indicate load progress

Getting a human-readable JSON string from the API

See also

Loading a Graph API object from Facebook

Getting ready

How to do it...

How it works...

There's more...

Converting raw results into ActionScript class instances

Detecting errors in Graph API requests

Usernames and Vanity URLs

Using the 'me' shortcut to reference the current user

/[OBJECT_ID] vs. [OBJECT_ID] in requests

See also

Loading specific data fields for a Graph API object

Getting ready

How to do it...

How it works...

There's more...

The undocumented fringes of the Graph API

See also

Loading Graph API connections

Getting ready

How to do it...

How it works...

There's more...

Handling responses with mixed results content types

See also

Loading multiple Graph API objects, in a single request

How to do it...

How it works...

There's more...

See also

Limiting request lengths and paging results

Getting ready

How to do it...

How it works...

There's more...

See also

Filtering requests to a specific time period

How to do it...

How it works...

There's more...

See also

Loading a Facebook profile image

How to do it...

How it works...

There's more...

Getting image URLs from Graph API objects

GetImageURL and the 'me' shortcut

See also

Using the search capabilities of the Graph API

Getting ready

How to do it...

How it works...

There's more...

See also

Creating, editing, and deleting Graph API objects

Getting ready

How to do it...

How it works...

There's more...

See also

5. Loading Data with FQL

Introduction

Loading data with FQL

Getting ready

How to do it...

How it works...

There's more...

Formatting (pretty-printing) our FQL requests

Using the FQL name classes to construct requests

Using me() to reference the current user

See also

Using subqueries in FQL

How to do it...

How it works...

There's more...

Loading the current user's family

Loading a list of users that have been tagged in photos, alongside the current user

Advanced data types in FQL

See also

Using logical operators in FQL requests

Getting ready

How to do it...

How it works...

There's more...

Removing the current user from the results

Excluding results with 'NOT IN'?

See also

Loading large data sets with FQL multiquery

Getting ready

How to do it...

How it works...

There's more...

What's faster?

See also

Cross-comparing data sets to find overlapping results

Getting ready

How to do it...

How it works...

There's more...

Why use server-side comparisons?

See also

Sorting FQL results

Getting ready

How to do it...

How it works...

There's more...

Case-insensitive sorting

Sorting results with advanced objects

See also

Limiting and paging FQL results

Getting ready

How to do it...

How it works...

There's more...

Should we add limits to FQL requests?

See also

Searching for text strings in FQL

Getting ready

How to do it...

How it works...

There's more...

See also

6. Facebook News Feeds and Status Updates

Introduction

Loading a user's status updates

Getting ready

How to do it...

How it works...

There's more...

Displaying the "time since" on status updates

Extracting and highlighting links in status updates

See also

Creating a status update with ActionScript

Getting ready

How to do it...

How it works...

There's more...

Posting status updates to other user's walls.

Privacy settings and status updates—who can see your updates?

See also

Posting a link with ActionScript

Getting ready

How to do it...

How it works...

There's more...

Publishing internal links to a Canvas application

See also

Deleting a status update with ActionScript

Getting ready

How to do it...

How it works...

There's more...

See also

Adding custom actions to Facebook posts

How to do it...

How it works...

There's more...

Working with query strings and responding to custom actions

See also

7. Comments and "Like this"

Introduction

Loading Comments for a Graph API object

Getting ready

How to do it...

How it works...

There's more...

What type of objects can have Comments?

See also

Adding a Comment to a Graph API object

Getting ready

How to do it...

How it works...

There's more...

Comments and privacy settings

See also

Deleting a Comment

Getting ready

How to do it...

How it works...

There's more...

Knowing which comments can be deleted by the current user

See also

Retrieving Likes for a Graph API object

Getting ready

How to do it...

How it works...

There's more...

No Likes? Make sure you're using the object ID

See also

Adding a "Like" to a Graph API object

Getting ready

How to do it...

How it works...

There's more...

Removing a Like from Graph API object

See also

Retrieving a "Like" count for a specified URL

How to do it...

Retrieving URL statistics with the Graph API

Retrieving URL statistics with FQL

How it works...

There's more...

Requesting statistics for the current page URL

Requesting statistics for multiple URLs

Ensuring correct URL encoding for the Graph API

See also

8. Working with Photos, Albums, and Tags

Introduction

Retrieving Photo and Album information from Facebook

Getting ready

How to do it...

How it works...

There's more...

Loading Photos, without selecting an Album first

See also

Loading and displaying Photo Tags

Getting ready

How to do it...

How it works...

There's more...

Creating an Album with the Graph API

Getting ready

How to do it...

How it works...

There's more...

Uploading Photos to Facebook

Getting ready

How to do it...

How it works...

There's more...

Uploading Webcam or generated images to Facebook

Adding a message to uploaded images

See also

9. Working with Groups and Events

Introduction

Retrieving Facebook Group information

Getting ready

How to do it...

How it works...

There's more...

Loading the current user's Groups

See also

Retrieving Group membership information

Getting ready

How to do it...

How it works...

There's more...

See also

Retrieving Facebook Events information

Getting ready

How to do it...

How it works...

There's more...

Understanding and formatting time information from Facebook

Plotting Events on a Map

Getting ready

How to do it...

How it works...

There's more...

See also

Loading Event RSVP statuses

Getting ready

How to do it...

How it works...

There's more...

See also

Changing current user's RSVP status

Getting ready

How to do it...

How it works...

See also

Creating an Event on the user's behalf

Getting ready

How to do it...

How it works...

There's more...

See also

Inviting friends to an Event

Getting ready

How to do it...

How it works...

10. Checkins and Facebook Places

Introduction

Downloading and integrating the Google Maps API

How to do it...

Retrieving Checkin information for the current user and their friends

Getting ready

How to do it...

How it works...

There's more...

Finding the user's most recent Checkin

Exploring Checkins at a specific Place

Finding Facebook Places near a specific location

Getting ready

How to do it...

How it works...

There's more...

Searching for Places within a specific distance

Creating and using custom Map Markers for our Places

See also

Integrating with HTML5 geolocation capabilities, Maps, and Facebook Places

Getting ready

How to do it...

How it works...

There's more...

Dealing with Geolocation errors

Using an overlay to represent geolocation accuracy

Working with the native Flash Platform Geolocation capabilities

See also

Creating new Checkins at an existing Facebook Place

Getting ready

How to do it...

How it works...

There's more...

Adding a message to a Checkin

"Tagging" other users to include them in a Checkin

See also

11. Bridging the Flash and Application Gap

Introduction

Launching Facebook UI dialogs from ActionScript 3

Getting ready

How to do it...

How it works...

There's more...

The display mode: Launching dialogs as inline iframes or new browser windows

See also

Imitating the Facebook.com UI in Flex

How to do it...

How it works...

There's more...

Displaying a Facebook-style loading indicator

Getting ready

How to do it...

How it works...

There's more...

Adding a text message to the loading animation

Creating the ApplicationBase class

Getting ready

How to do it...

How it works...

There's more...

Using the ApplicationBase class, instead of the standard Application class

Specifying Extended Permission requirements in our recipes

Automatically executing code once our application is authenticated with Facebook

See also

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部