Time for action – retrieving info from the Page table
So how do we use it? Well, we can't request objects, of course, because we're not using an Object model – but we don't even request rows, which are their close equivalents. We request specific fields. If all we're interested in is the URLs of Pages' associated websites, we can just request results from the "website" column:
SELECT website
Next, we have to specify the table we're interested in. In this case, that's "page":
SELECT website FROM page
Now we specify a condition to narrow down the search:
SELECT website FROM page WHERE name = "Facebook"
(Note that when checking this condition, we use =
rather than ==
, unlike in AS3.)
These three elements make up a single "query". When we run this query ...
Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.