introduction to facebook platform

38
Introduction to Facebook Platform Venkatesh

Upload: venkatesh-narayanan

Post on 06-May-2015

213 views

Category:

Technology


6 download

TRANSCRIPT

  • 1.Venkatesh

2. What is Facebook Social Network More than 400M users worldwide Gallery, Profile Management, Collaboration, Notes,Ratings, Discussion boards, Video all in one place. You dont need to pay anything to access it. 3. Benefits of developing on FBplatform User management is done by FB Harvest social relationships Viral marketing Easy to develop, promote and monetize Bring an existing app and brand into FB Support for different languages 4. What can I develop? Imagination is the Limit Games Dump Entertaining Apps Content Sharing Apps Business Apps Social Network Aggregator and Mashups 5. Basic Concepts Facebook applications are applications that useFacebook Platform to access and incorporate Facebooksocial data All applications (including those developed byFacebook) can be added or removed by a user, whichwill add or remove an application from a usersaccount. Users can add and remove applications atwill. Users can also authorize applications (by logging into an application) to access their user data. 6. Facebook App Environment 7. Facebook App Execution 8. Facebook API Web Service A user has to authorize the application to fetch user data. Session key is issued that grants application to make callsto the API Web Service (api.facebook.com/restserver.php) All API calls made with the users session key would returnusers specific data. Most data returned from Web service is simple XML,defined by an XML schema document athttp://api.facebook.com/1.0/facebook.xsd. You can use this to create bindings, run XSLT on theresults, or simply use as a reference to understand the databeing returned. 9. Developing Application :Example Login here : http://facebook.com/developers 10. Configuration (Canvas) 11. Configuration (Authentication) 12. Post Authorization Facebook pings an url whenever a user authorizes an application. This url must be specified in our developer application as shown below. 13. And the output ishttp://apps.facebook.com/softexpo/ 14. Important Components FBML FBJS FQL XFBML REST API 15. FBML Its like any other markup language. Comes with namespace fb.http://wiki.developers.facebook.com/index.php/FBML 16. Facebook Integration Points Facebook platform provides integration points into thefacebook profile. Feed: An application can publish content into a usersFeed, appearing on the users Wall tab. Profile box: The profile box provides a space for theapplication to represent itself on a users profile. Feed Forms: Feed forms are special FBMLcomponents that allow applications to publish Feedstories on the behalf of users. 17. Feed Form A Feed Form is a form which prompts the user to post something tohis/her/friends/pages/groups/events wall. Because it is a form, the user mustclick the "Publish" button to publish the feed to the wall. A Feed Form is simplysomething like this: 18. Sample FBMLDiscuss the Titans 19. Sample FBML Invite Friends 20. Demo 1 : Facebook Tools Go to http://developers.facebook.com/tools.php Demo of API Test Console Demo of FBML Test Console Demo of FQML Test Console 21. Demo 2 : Facebook Application Go to www.facebook.com/developers Go to the Developer application and click Set Up NewApplication. Give your application a name, check toaccept the Terms of Service, then click Submit. Canvas Page URL : The address which is seen by yourapplication users. Your users go to this address infacebook to access your application. In the example "http://apps.facebook.com/myfbapp_pi/ Canvas Callback URL : The location where to hostyour application. 22. FQLSELECT name, picFROM userWHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = 1027980517)AND sex=female 23. FQL You can get the result of complex SEARCH quickly You can do things which are resource hungry, quiteeasily You can join complex queries together and find aspecific item 24. AuthorizationAuthorization is an important step and concept aboutFacebook applications. According to Facebooks policy, anapplication can only perform the followings without apermission of the user: Access the users name, users profile picture and the list offriends of the user, provided that the user does not chooseto hide his/her information for public search Publish feeds to the users wall by prompting the user to doso Send request or invitations to other users by prompting theuser to do so. 25. Extended Permissions SMS, Stream, Email, Events, Notes, status_update anda lot more. http://wiki.developers.facebook.com/index.php/Extended_permissions Let me update your status 26. Output 27. Successful Apps 28. Successful Apps 29. Monetization Freemium Business Model FBFund Advertisement Virtual Currency 30. Other Things FBConnect based applications FB App Dev for iPhone 31. References http://wiki.developers.facebook.com http://developers.facebook.com/tools.php http://developers.facebook.com/get_started.php?tab=anatomy http://www.facebook.com/developers/ http://developers.facebook.com/connect.php 32. Conclusion Facebook applications can embed advertising andsponsorship no revenue sharing Facebook applications run from your servers givingmore accountability and metrics Face application platform enables rapid applicationdevelopment in multiple languages.