Beautiful Architecture
outlined in the next section to effectively build web services of any kind, regardless of whether the data in the developer’s st ...
inter-process communication (IPC) system called Thrift (http://developers.facebook.com/ thrift) that accomplishes this cleanly. ...
public $pic = null; public $current_location = null; public function __construct($vals=null) { if (is_array($vals)) { if (isset( ...
Thrift generates similar code for declaring RPC function calls, serializing into known output structures, and turning intern ...
taken on the site. However, cookies normally part of Facebook usage are not available to Facebook anymore in Figure 6-2—the outs ...
App session Data FB session Data books.php (no facebook session) fettermansbooks.com (redirect) (redirect after authorization) s ...
HTTP connections adds latency and overhead to the developer’s own pages. His own database also offers a higher granularity of ac ...
EXAMPLE 6-12. Batching method calls $facebook->api_client->begin_batch(); $friends = &$facebook->api_client->fri ...
EXAMPLE 6-14. Chaining method calls client-side $fields = array('uid', 'name', 'books', 'pic', 'current_location'); $friend_uids ...
Let’s start with this user table as an example and build the FQL system to support queries on it. Underneath all the layers of d ...
// mapping: "index" id -> Thrift-compatible data object public function evaluate($id) { ... } } class FQLTable { // a static ...
FQLUserPic and FQLUserBooks differ only in their internal property $this->name, set by their constructor during processing. N ...
To initiate the whole flow, the SQL-like string input is transformed via lex and yacc into the main FQLStatement’s $select expre ...
// Match to the row's index. If we were using 'name' as an alternative index // to the user table, we would transform it here to ...
App Infrastructure FB Infrastructure App Logic App Display Browser $_REQUEST (obj) HTML, JS, CSS App Data FB API FB Service FB D ...
PRODUCT PROBLEM: For social applications to gain compelling critical mass, users on the supporting social graph must be made awa ...
section, applications themselves become a data service of a sort, supplying the content for Facebook to display under http://app ...
Applications on Facebook: iframes An obvious first stab for more safely displaying the content of one application in the visual ...
Browser FB Logic FB Display FBML Interpreter Receiver FB API FB Service FB Data Privacy FQL App Logic App Display App Service (o ...
this FBML data. This is a great example of data at the center of execution: FBML is simply declarative execution rather than imp ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf