1 / 31

Facebook programming

Learn how to monetize your software development skills through Facebook programming and utilize the Facebook API to create viral applications.

sonntag
Télécharger la présentation

Facebook programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Teppo Räisänen | Oulu University of Applied Sciences Teppo Räisänen Teppo.raisanen@oamk.fi School of Business and Information Management Facebook programming

  2. Teppo Räisänen | Oulu University of Applied Sciences Motivation

  3. Teppo Räisänen | Oulu University of Applied Sciences Motivation • Social networking software • Facebook, Inc, Palo Alto, CA • Mark Zuckerberg • Founded 2004 • Originally for Harvard students • Then for any Boston are university students, then Ivy League, Stanford. • Slowly to other schools and businesses • Growing rapidly • January 2009 150 million active users • September 2009 300 million active users • September 2010 500 million active users

  4. Teppo Räisänen | Oulu University of Applied Sciences Motivation • 50% of active users use Facebook daily • Fastest growing demographic is 35 and older • Average user has 130 friends

  5. Teppo Räisänen | Oulu University of Applied Sciences Motivation • Core features • Add friends • Send messages to friends • Update status • Update profile • Upload pictures • Join networks • Send invitations and requests • As the users use these features, his/her friends arenotified

  6. Teppo Räisänen | Oulu University of Applied Sciences Facebook • Automated aggregation of information from friends’ interactions • Streams, feeds, stories, invites

  7. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • If you don’t have a Facebook account, create one • We need a Facebook account to create applications • http://www.facebook.com • If you have a Facebook account, think about your favorite applications • Why do you like them? • What nice features does it have? • Why did you start using it?

  8. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • For software developer • Facebook is a good distribution channel (500 M active users!) • The users will do much of the distribution work for developer • Invites & requests • Facebook platform • Open application programming interface • Easy and fast application development • Facebook is a good place to make money • Ads, micro payments

  9. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • How come Facebook works? • Reciprocation • Users will return a favor • Social proof • Users do things that others do • Liking • People like their friends

  10. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook platform • Published May 24, 2007 • Allows software developers to utilize Facebook features in their applications • PHP, Java, Flash • More than 350 000 active applications • More than 250 applications has more than a million monthly users • Developers can make $50 000 / month.

  11. Teppo Räisänen | Oulu University of Applied Sciences Monitizing • Ad networks • Google AdSense, RockYou, VideoEgg • CPM – cost per mille • CPM = $0.10 • Example: you have 1500 daily visitors, each see 10 pages => the ad is displayed 15000 times • Daily income $1.5, monthly $45 • 15 000 => $450, 150 000 => $4500, 1.5M => $45 000 • CPC – cost per click • You get paid certain amount per click (e.g. $.20) • 10 clicks => $2 • CPC can be up to several dollars per click

  12. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook API • Fast and easy • Easy to use Facebook core features • Applications can be done over a weekend • Viral growth • Millions of users in few weeks • Metrics • How many daily installs, how many invitations send, how long the users visit the application • Use metrics to improve the application • Try out different variations and see which one works the best

  13. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook API • Facebook uses a variant of HTML and JavaScript • FB-Javascript (FBJS) and FB-markup language (FBML) • Small chances to JS, new tags to THML FBML: <fb:name uid="12345" /> <fb:wall> <fb:wallpost uid=”12345">Hello</fb:wallpost> </fb:wall>

  14. Teppo Räisänen | Oulu University of Applied Sciences Facebook ohjelmistokehitys

  15. Teppo Räisänen | Oulu University of Applied Sciences Facebook ohjelmistokehitys <fb:fbml> <fb:request-form action="index.php" method="POST" invite="true" type="YOUR APP NAME" content="Your text goes here. <?php print htmlentities("<fb:req-choice url=\”URL\" label=\"Authorize My Application\"") ?>" > <fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use YOUR APP NAME."> </fb:request-form> </fb:fbml>

  16. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook programming requires: • PHP, Ruby on Rails:in or similar programming language • We use PHP • Knowledge of HTML and JavaScript • Web-hosting • We use students.oamk.fi • MySQL, CSS, Photo Shop / PSP, Java, Flash…

  17. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook application development procedure • Facebook account • Web-hosting • Install Facebook Developer-application • Register a new application with Developer • Program the application • Publish it in Facebook • In its simplest form, Facebook applications are PHP/HTML applications

  18. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook applicationdevelopmentprocedure • Facebook account • Web-hosting • Install Facebook Developer-application • Register a new applicationwithDeveloper • Program the application • Publishit in Facebook

  19. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • For hosting our application, we can use students-webserver • This happens exactly in the same way we have been doing so far in the class • Create a folder called fbdemo under your public_html –folder • Create index.php –file and put following code in it: <?php print ”Hello world”; ?>

  20. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook applicationdevelopmentprocedure • Facebook account • Web-hosting • Install Facebook Developer-application • Register a new applicationwithDeveloper • Program the application • Publishit in Facebook

  21. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Install Developer application • http://www.facebook.com/developers/

  22. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook applicationdevelopmentprocedure • Facebook account • Web-hosting • Install Facebook Developer-application • Register a new applicationwithDeveloper • Program the application • Publishit in Facebook

  23. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • You can register new applications in the Developer application by clicking the ”Set Up New Application” –button in the upper right corner

  24. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Come up with a name • Read Facebook Terms and Conditions • Click ”Agree” • Click ”Create Application”

  25. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Do the security check • Sometimes there will be an error and you will not get past this stage. Look back to the Developer app because usually the application is created even if Facebook did not let you pass the security check

  26. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • After a new application is set up you can find it in Developers app • Find you app and Click more, and choose Edit settings

  27. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • In settings, you can change many things for your app • E.g. Write a derscription about the app, upload icon and logo, add new developers etc. • You must change the Canvas settings under ”Facebook integration” -tab

  28. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Change Canvas Page to what ever you like • Each app must have different canvas page • Think of it as an URL to your application

  29. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Change canvas url to: • http://www.students.oamk.fi/~YOURLOGIN/fbdemo • Change canvas type to FBML • Click ”Save Changes”

  30. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • You should see something like this:

  31. Teppo Räisänen | Oulu University of Applied Sciences Facebook programming • Facebook applicationdevelopmentprocedure • Facebook account • Web-hosting • Install Facebook Developer-application • Register a new applicationwithDeveloper • Program the application • Publishit in Facebook

More Related