Krzysztof Jabłoński & Dariusz Gertych
Krzysztof Jabłoński&
Dariusz Gertych
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
TheFacebook in 2005
Facebook in 2010
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 :)
Facebook and Rails
• Leave facebooker behind• Focus on Graph API• Use one of the following gems
o fgrapho koalao rest-graphominiFBoFBGraphomogli
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 :)
Create your own FB app
• http://www.facebook.com/developers/
• three different apps for three rails environments
FB app admin profile
Add collaborators
Configure your FB app
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 !
Basic social plugins
• Meta tags
• Login Button
Basic social plugins
• Like button
• Fan box
Server side integration with Authlogic
Sample Application
• Rails 3.0.3• devise (omniauthable)• fgraph• facebook javascript sdk
• https://github.com/chytreg/rupy_fb_app
Sample Application
Bibliography
• http://facebook.com• http://developers.facebook.com/docs/api• http://github.com/jugend/fgraph• http://fbrell.com/examples
Thank you for attention
http://jablko.biz