Top Banner
Krzysztof Jabłoński & Dariusz Gertych
19

RupyTuesday - Facebook

Dec 05, 2014

Download

Technology

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: RupyTuesday - Facebook

Krzysztof Jabłoński&

Dariusz Gertych

Page 2: RupyTuesday - Facebook

Facts

• launched in February 2004• founded by Mark Zuckerberg (20 yo) in 2

weeks• as of July 2010 Facebook has more than 500

million active users• 1700+ employees now

Page 3: RupyTuesday - Facebook

TheFacebook in 2005

Page 4: RupyTuesday - Facebook

Facebook in 2010

Page 5: RupyTuesday - Facebook

How to start?

• http://developers.facebook.com/docs• Get familiar with Graph API• Look through http://fbrell.com/examples• Learn about authentication and permissons

(most fb apps want permissions) Figure out which one do you need and try to not abuse :)

Page 6: RupyTuesday - Facebook

Facebook and Rails

• Leave facebooker behind• Focus on Graph API• Use one of the following gems

o fgrapho koalao rest-graphominiFBoFBGraphomogli

Page 7: RupyTuesday - Facebook

Why we use fgprah?

• one of the first rails gem with Graph API support• just works either with 2.3.x or 3.0.x• frequent updates• with our little extension - full FQL queries

support• good enough :)

Page 8: RupyTuesday - Facebook

Create your own FB app

• http://www.facebook.com/developers/

• three different apps for three rails environments

Page 9: RupyTuesday - Facebook

FB app admin profile

Page 10: RupyTuesday - Facebook

Add collaborators

Page 11: RupyTuesday - Facebook

Configure your FB app

Page 12: RupyTuesday - Facebook

Let's play with fgraph

• install gem• add gem to your environment.rb• add require to Rakefile• create fgraph.yml config

o app_ido app_secret

• fgraph_javascript_init_tag• and that's all !

Page 13: RupyTuesday - Facebook

Basic social plugins

• Meta tags

• Login Button

Page 14: RupyTuesday - Facebook

Basic social plugins

• Like button

• Fan box

Page 15: RupyTuesday - Facebook

Server side integration with Authlogic

Page 16: RupyTuesday - Facebook

Sample Application

• Rails 3.0.3• devise (omniauthable)• fgraph• facebook javascript sdk

• https://github.com/chytreg/rupy_fb_app

Page 17: RupyTuesday - Facebook

Sample Application

Page 18: RupyTuesday - Facebook

Bibliography

• http://facebook.com• http://developers.facebook.com/docs/api• http://github.com/jugend/fgraph• http://fbrell.com/examples

Page 19: RupyTuesday - Facebook

Thank you for attention

http://jablko.biz