tailieunhanh - developing facebookbapplications phần 2

"OK, bây giờ những gì?" Bộ phim thành công nhất: Độc lậpChúng tôi sẽ bắt đầu xây dựng giao diện người dùng của chúng tôi bằng cách tạo ra một cái nhìn đơn giản:Điều đó có vẻ một chút như HTML, nhưng tôi đặt cược bạn đã bao giờ nhìn thấy những thẻ trước khi. Những gì bạn nhìn thấy là Facebook Markup Language (FBML). | Adding the Karate Poke Application 21 Figure Facebook asks you to authorize an application before you use it. Adding the Karate Poke Application Open your browser and go to the URL1 for Karate Poke. You re seeing the application authorization page shown in Figure . You must authorize an application before it can get access to any of your information. This is the first of several privacy features that are part of the Facebook Platform. When you authorize an application you are giving it access to some of your personal data. You allow that application to access your profile information and your list of friends and even to send updates about the activities you ve performed. Along with these permissions you can elect to give an application the ability to do more on your behalf such as add a box to your profile or send you email. These permissions aren t set in stone. You can change them and even deauthorize an application at any time. As an application developer you ll need to be aware of this. it s important to make sure your application degrades nicely when a user limits its capabilities. The Parts of a Facebook Application Now click Allow to authorize the application. once you ve done that you will be taken to the canvas page of Karate Poke. That seems like a good place to start our tour of the three main parts of a Facebook application the canvas the profile area and messages. 1. http karate_poke The Parts of a Facebook Application 22 ft Figure The canvas is where users interact with your application. The Facebook Canvas The canvas page is the main place where your users interact with your application. You ll notice that it looks like any other Facebook page including the navigation area along the top. Facebook actually inserts your application right into the middle of the page just like a Rails layout. You can see what this looks like in Figure . We ll cover the Facebook canvas in detail in Chapter 5 Getting Into the .

TỪ KHÓA LIÊN QUAN