Đang chuẩn bị liên kết để tải về tài liệu:
Facebook API Developers Guide PHẦN 10
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bây giờ bạn có những thiết lập, chúng ta hãy suy nghĩ về thiết kế cơ sở dữ liệu của bạn. Giống như tôi đã đề cập ở đầu chương này, đây là một đánh giá hệ thống trò chơi. Nó sẽ hiển thị làm thế nào để làm một loạt các kỹ thuật trong Facebook để cung cấp cho bạn một ý tưởng tốt về cách sử dụng các tính năng trong ứng dụng của riêng bạn. | Building a Facebook Application Start to Finish 123 Publishing Feeds Now that you have a functioning application one further improvement is to publish the actions to the user s profile. There are really two way you can do this. The first is to publish to the individual s feed and the other is to publish to the user s friends feeds. The fun part is to use feed.publishTemplatizedAction to publish a templatized action to the user s feed. For any action you want to immortalize in your user s feed simply call the feed_publishTemplatizedAction function from the FacebookRestClient object title_template actor added game to MyTestApp title_data game . game_title . facebook- api_client- feed_publishTemplatizedAction title_template title_data I especially like to publish feeds this way because the feed preview from the Facebook tools http developers.facebook.com tools.php feed gives you a lot of help in testing how the feed will look. The big thing to remember is that you need to have actor somewhere in the title_template variable so Facebook knows where to place the proper username in the text. This tag did go through a recent change so make sure you take a look at the most recent wiki documents for the latest on this tag. Testing You ll need to create a new account not your real account on Facebook and then register that account as a test user at http www.facebook.com developers become_test_account.php. You ll need an e-mail address for this account to work so you can create one at Google Yahoo or MSN or you can create e-mail aliases with a service such as MailExpire http www.mailexpire.com . You should remember that test users aren t real Facebook users so they won t see the real people on the network. Also you can t set a test account to be the application owner. You most likely need only one of these accounts to test your application or ask a good friend . However this doesn t actually provide you with any real human input. If you want to get some real people to give you