- Facebook Graph API Development with Flash
- Michael James Williams
- 358字
- 2021-03-27 00:41:56
Time for action - traversing the Graph
Set the Visualizer to start by requesting the PacktPub Page. Now, compile and run your SWF, and use the Connections box and the Pop Out buttons to explore the Graph, and see how far you can get. Don't forget you can drag Renderers around, and zoom out to fit even more in the Flash Player window! And remember, black lines signify connections, while gray lines signify that the object belongs to a List.
The following screenshot shows what it could look like after only a few clicks:

You can already see the resemblance to the sprawling diagrams of the Graph seen previously in the chapter.
What just happened?
You've written the code to power an RIA that allows you to explore the entire public Graph, starting from any point. In other words, you've made a Facebook crawler, in Flash.
Have a go hero – exploring other areas
You don't have to start exploring from the PacktPub Page. Try changing that initial GraphRequest
instance to request the Facebook Page, Facebook
, or Mark Zuckerberg's public profile, markzuckerberg
, or the Page of any other brand, company, or famous person.
Also, realize that you're not limited to a single GraphRequest
; you can create as many as you like. Try starting with a few at once, and see if you come across any overlaps!
Keep an eye on your output window for traces telling you that a Graph Object or List could not be retrieved. Is it always for the same reason?
Pop Quiz
- What does the
?metadata=1
parameter do when used in a Graph API URL?a. It makes the metadata visible
b. It makes the metadata invisible
- How many levels through the Graph can you traverse, starting with any Page?
a. One
b. Two
c. Ten
d. Unlimited
- True or false: If the JSON returned from a Graph URL contains an object called data, we can always assume it's a Graph List.
a. True
b. False
- True or false: If the JSON returned from a Graph URL doesn't contain an object called data, we can always assume it's a Graph Object.
a. True
b. False
- 自己動手寫分布式搜索引擎
- 中文版AutoCAD 2016從入門到精通
- SolidWorks 2021中文版機(jī)械設(shè)計從入門到精通
- Authorware應(yīng)用案例教程
- Cinema 4D電商美工與視覺設(shè)計案例教程(培訓(xùn)教材版)
- 從零開始:Photoshop工具詳解與實戰(zhàn)
- 平面設(shè)計制作標(biāo)準(zhǔn)教程(微課版 第2版)
- PostgreSQL Replication
- 剪映真?zhèn)鳎?8招玩轉(zhuǎn)短視頻剪輯
- 計算機(jī)輔助翻譯基礎(chǔ)與實訓(xùn)
- Magento: Beginner's Guide
- 中文版Premiere Pro CS6視頻編輯(慕課版)
- 中文版Photoshop 2023從入門到精通
- 中文版Photoshop平面設(shè)計入門教程
- 動畫制作基礎(chǔ)(項目教學(xué)版)