tailieunhanh - Facebook API Developers Guide PHẦN 2

Nếu bạn đã từng phát triển trong ColdFusion hoặc JSTL (hoặc thẻ khác dựa trên ngôn ngữ lập trình), bạn sẽ tìm thấy làm việc với nền tảng Facebook Markup Language (FBML) rất tự nhiên. Nếu bạn là người mới lập trình dựa trên thẻ, chỉ cần nghĩ FBML như các thẻ HTML ưa thích, | Introducing the Facebook Platform 3 Facebook Markup Language If you ve ever developed in ColdFusion or JSTL or other tag-based programming language you ll find working with the platform s Facebook Markup Language FBML very natural. If you re new to tag-based programming just think of FBML as fancy HTML tags because each interaction starts and ends with a tag. However to distinguish between HTML and Facebook commands you prefix the tags with fb as you would if you were using multiple DTDs schemas in XHTML. By using the FBML tag set Facebook abstracts a lot of complex code and makes many of the routine procedures almost effortless. For example to add a link to your application s help pages on your dashboard the navigational tabs that go across the top you simply need to add the following lines fb dashboard fb help href Application Help fb help fb dashboard REST API Calls Facebook API calls are grouped into eight action categories. These calls are really wrappers for more sophisticated FQL interactions with the Facebook back end but are useful bits of code that speed up the development of your application. These calls include the following provides basic authentication checks for Facebook users. provides methods to post to Facebook news feeds. provides methods to query Facebook for various checks on a user s friends. provides methods to send messages to users. allows you to set FBML in a user s profile. provides information about your users such as content from the user s profile and whether they are logged in . provides ways to access Facebook events. provides methods to access information for Facebook groups. provides methods to interact with Facebook photos. Graham 4 Introducing the Facebook Platform Facebook Query Language The Facebook Query Language FQL is a SQL-style language specifically designed to allow .