developing_facebook_platform_applications_with_rails.pdf
Contents Foreword 10 Acknowledgments 12 Preface 13 UnderstandingaSuccessfulFacebookApplication....... 14 DevelopingwithRails........................ 16 AboutThisBook........................... 17 1 GettingStartedwiththeFacebookPlatform 20 1.1 AddingtheKaratePokeApplication ........... 21 1.2 ThePartsofaFacebookApplication........... 21 1.3 GettingInsidetheApp................... 26 1.4 SettingUpandRunningtheApp............. 27 1.5 Summary........................... 34 2 StartingYourFirstApplication 35 2.1 CreatingaFacebookRailsApplication.......... 35 2.2 SendinganInvitation.................... 39 2.3 GivingtheSenderSomeFeedback............ 43 2.4 MakingOurInvitationInteractive............. 44 2.5 UpdatingtheProfile..................... 45 2.6 RefactoringtoUseHelpers................. 49 2.7 Summary........................... 51 3 BuildingtheKaratePokeObjectModel 52 3.1 BuildingtheUserModel.................. 52 3.2 AccessingFacebookfromModels............. 57 3.3 CreatingtheMoveModel.................. 59 3.4 Attack! ............................ 60 3.5 CreatingtheBeltModel .................. 63 3.6 EncouragingInvitations.................. 66 3.7 GettingDataOutofFacebook............... 67 Prepared exclusively for Alison Tyler More free ebooks: http://fast-file.blogspot.com CONTENTS 8 3.8 RefactoringandPerformance............... 70 3.9 Summary........................... 74 4 TestingOurFacebookApplication 75 4.1 ControllerTests....................... 75 4.2 TestingModels........................ 81 4.3 Summary........................... 84 5 GettingIntotheFacebookCanvas 85 5.1 GettingInteractivewithForms.............. 85 5.2 BuildingtheBattlesPage ................. 91 5.3 AddingNavigation...................... 93 5.4 HidingContentfromUsers................. 97 5.5 AddingPagination...................... 101 5.6 AddingSomeStyle ..................... 103 5.7 Summary........................... 104 6 MakingItMoreSocial 105 6.1 SendingNotifications.................... 105 6.2 PublishingtoNewsFeeds ................. 113 6.3 CommentsandDiscussionBoards............ 124 6.4 SpreadingbyInvitation................... 128 6.5 GivingtheProfileaMakeover............... 131 6.6 TestingFacebookerPublishers .............. 141 6.7 Summary........................... 142 7 ScriptingwithFBJS 143 7.1 FBJSOverview........................ 143 7.2 AjaxinFBJS......................... 150 7.3 Summary........................... 157 8 IntegratingYourAppwithOtherWebsites 158 8.1 MakingContentAccessible ................ 158 8.2 ActionsThatWorkBothWays............... 160 8.3 HandlingFacebook-SpecificData............. 161 8.4 SharingSessions...................... 164 8.5 AccessingFacebookOutsidetheCanvas......... 165 8.6 Summary........................... 169 Reporterratum thiscopyis(P1.0printing,September2008) Prepared exclusively for Alison Tyler More free ebooks: http://fast-file.blogspot.com CONTENTS 9 9 ScalingandPerformance 170 9.1 GettingFasterwithMemcached.............. 170 9.2 CachingOurViews..................... 173 9.3 Cachingwithrefs...................... 177 9.4 APIPerformance....................... 179 9.5 Summary........................... 185 Bibliography 186 Index 187
- 粉丝: 171
- 资源: 2138
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助