Facebook Graph API Developing with flash(1).pdf
(
2932 KB
)
Pobierz
645491570 UNPDF
Learn by doing: less theory, more results
Facebook Graph API
Development with Flash
Build social Flash applications fully integrated with the
Facebook Graph API
Beginner's Guide
Michael James W Illiams
PUBLISHING
Facebook Graph API
Development with Flash
Build social Flash applications fully integrated with the
Facebook Graph API
Michael James Williams
[PACKT]
BIRMINGHAM - MUMBAI
Beginner 's Guide
PUBLISHING
Facebook Graph API Development with Flash
Beginner's Guille
Copyright © 2010 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers
and distributors will be held liable for any damages caused or alleged to be caused directly or
indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals. However,
Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2010
Production Reference: 1081210
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK
ISBN 978-1-849690-74-4
www.packtpub.com
Cover Image by Asher Wishkerman
(
a.wishkerman@mpic.de)
Table of Contents
Preface
1
Chapter 1: Introduction
Z
What's so great about Facebook?
7
It's popular
8
Numbers
9
It's everywhere
9
It's interesting to develop for
11
Web hosts
11
What's a web host?
11
Why do you need one?
12
How do you choose one?
12
Useful software
13
What about domain names?
13
How much AS3 knowledge is required?
14
The source code
15
Powered by...
17
Debugging
18
Watch out for caching
19
A final note...
21
Chapter 2: Welcome to the Graph
23
Accessing the Graph API through a Browser
24
Time for action - loading a Page
24
Accessing the Graph API through AS3
27
Time for action - retrieving a Page's information in AS3
27
Time for action - deserializing a JSON object
32
Time for action - visualizing the info
33
Understanding connections
36
Table of Contents
Time for action - finding connections in a browser
36
Rendering Lists
40
Time for action - rendering Lists of Posts
40
Rendering connections
45
Time for action - displaying a Graph Object's connections
46
Introducing the Requestor
48
Time for action - creating an HTTP Requestor
48
Understanding Connections of Connections
55
Time for action - loading photos from an album
56
Putting it all together
61
Time for action - traversing the Graph
61
Summary
64
Chapter 3: Let Me In!
65
What can you see?
65
Time for action - snooping through other people's accounts
65
What's that got to do with the Graph API?
69
Access tokens are proof of authorization
70
User/Application authorization
70
Time for action - registering an application with Facebook
72
Application ID + logged-in user = access token
74
Time for action - requesting an access token with the browser
75
Registering a redirect URI with our application
75
Using the Access Token
78
Me, me, me
80
Keeping secrets
81
What did Facebook give us?
81
Authenticating with AS3
83
Time for action - Using an access token in our Graph visualizer
83
That's cheating!
88
Time for action - authenticating through the application
88
A different approach
91
Time for action - authenticating via JavaScript
91
Creating a callback web page
93
Receiving the access token
95
What about users who haven't used the application before?
99
Extended permissions
101
Time for action - obtaining extended permissions
101
Time for action - requesting extended permissions
102
I want it all, and I want it now
106
Using the Adobe ActionScript 3 SDK for Facebook platform
106
Time for action -implementing the SDK
107
Summary
115
Plik z chomika:
wydra66
Inne pliki z tego folderu:
Wrox.Professional.C.Sharp.4.0.and.dot.NET.4.Mar.2010(1).pdf
(40984 KB)
Wrox.Beginning.PHP5.July.2004(1).chm
(38763 KB)
CERS 220-701.2(1).pdf
(129799 KB)
DirectX.Rendering_w_czasie_rzeczywistym_-_K.Dempski(1).pdf
(160325 KB)
CISCO_Receptury_-_K.Dooley__I.J.Brown.pdf
(46431 KB)
Inne foldery tego chomika:
_rzeczy_z_netu_
★★E-BOOKI INFORMATYKA HELION★★EDUWEB!!═════
Asembler
Automatyka i PLC
callan angielski
Zgłoś jeśli
naruszono regulamin