官术网_书友最值得收藏!

  • Flash Facebook Cookbook
  • James Ford
  • 364字
  • 2021-04-02 18:51:29

Introduction

All third-party systems that work with data from Facebook do so through the Facebook API, which is a combination of REST-style techniques, OAuth 2.0, and an ever-evolving combination of web technologies, collectively titled by Facebook as the Graph API.

Facebook provides developers with a number of different code libraries through its developer portal, and of these the only one that's completely client-side is the JavaScript SDK. But anything that JavaScript can do can be done by both ActionScript 3 and the Flash Platform, more or less.

You might think, having looked at the SDKs officially listed by Facebook in their developer portal, that you'd need to build a code library yourself but luckily for us, there's already an existing, officially supported, ActionScript 3 library for working with the Graph API. This library, the Facebook ActionScript 3 SDK, is supported by both Adobe and Facebook, so you can be assured that it will be kept up-to-date and fully functional, even if there is a significant overhaul of the Facebook APIs—after all, who better to support this SDK than Adobe and Facebook themselves?

There's no sense in recreating the wheel, as they say, so the examples in this cookbook will be using the existing Facebook ActionScript 3 SDK almost exclusively for its recipes. We'll also be using the Flex SDK 4.0 for our examples, as it's a quick and easy way to construct user interfaces and put together working prototypes for our recipes. However, using Flex isn't a requirement for the Facebook ActionScript 3 SDK to work—it's just for the examples in this Cookbook. Integrating the Facebook SDK with a normal ActionScript-only project or a Flash Professional-based project is entirely possible—it will just inevitably require a little more time creating the interface, but the ActionScript 3 code behind it all will work pretty much the same.

In this chapter we'll be getting ready to start developing with Facebook—we'll download the Facebook ActionScript 3 SDK, integrate that SDK with our Flash Builder workspace, set up our application on Facebook.com, and generally get everything set up that we need to before we can start communicating with the Facebook APIs.

主站蜘蛛池模板: 土默特右旗| 浪卡子县| 陆川县| 桐梓县| 周宁县| 分宜县| 乌拉特中旗| 禹州市| 抚州市| 临西县| 师宗县| 恩施市| 冀州市| 巴塘县| 成安县| 樟树市| 津市市| 北安市| 长武县| 千阳县| 万安县| 巴林右旗| 安远县| 赤峰市| 吉首市| 荔波县| 定边县| 乌鲁木齐县| 望奎县| 兰溪市| 五原县| 封开县| 项城市| 漳州市| 财经| 娄底市| 二连浩特市| 霍城县| 永丰县| 柞水县| 延安市|