RupyTuesday - Facebook

820 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
820
On SlideShare
0
From Embeds
0
Number of Embeds
94
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

RupyTuesday - Facebook

  1. 1. Krzysztof Jabłoński & Dariusz Gertych
  2. 2. Facts <ul><ul><li>launched in February 2004 </li></ul></ul><ul><ul><li>founded by Mark Zuckerberg (20 yo) in 2 weeks </li></ul></ul><ul><ul><li>as of July 2010 Facebook has more than 500 million active users </li></ul></ul><ul><ul><li>1700+ employees now </li></ul></ul>
  3. 3. TheFacebook in 2005
  4. 4. Facebook in 2010
  5. 5. How to start? <ul><ul><li>http://developers.facebook.com/docs </li></ul></ul><ul><ul><li>Get familiar with Graph API </li></ul></ul><ul><ul><li>Look through http://fbrell.com/examples </li></ul></ul><ul><ul><li>Learn about authentication and permissons (most fb apps want permissions) Figure out which one do you need and try to not abuse :) </li></ul></ul>
  6. 6. Facebook and Rails <ul><ul><li>Leave facebooker behind </li></ul></ul><ul><ul><li>Focus on Graph API </li></ul></ul><ul><ul><li>Use one of the following gems </li></ul></ul><ul><ul><ul><li>fgraph </li></ul></ul></ul><ul><ul><ul><li>koala </li></ul></ul></ul><ul><ul><ul><li>rest-graph </li></ul></ul></ul><ul><ul><ul><li>miniFB </li></ul></ul></ul><ul><ul><ul><li>FBGraph </li></ul></ul></ul><ul><ul><ul><li>mogli </li></ul></ul></ul>
  7. 7. Why we use fgprah? <ul><ul><li>one of the first rails gem with Graph API support </li></ul></ul><ul><ul><li>just works either with 2.3.x or 3.0.x </li></ul></ul><ul><ul><li>frequent updates </li></ul></ul><ul><ul><li>with our little extension - full FQL queries support </li></ul></ul><ul><ul><li>good enough :) </li></ul></ul>
  8. 8. Create your own FB app <ul><ul><li>http://www.facebook.com/developers/ </li></ul></ul><ul><ul><li>three different apps for three rails environments </li></ul></ul>
  9. 9. FB app admin profile
  10. 10. Add collaborators
  11. 11. Configure your FB app
  12. 12. Let's play with fgraph <ul><ul><li>install gem </li></ul></ul><ul><ul><li>add gem to your environment.rb </li></ul></ul><ul><ul><li>add require to Rakefile </li></ul></ul><ul><ul><li>create fgraph.yml config </li></ul></ul><ul><ul><ul><li>app_id </li></ul></ul></ul><ul><ul><ul><li>app_secret </li></ul></ul></ul><ul><ul><li>fgraph_javascript_init_tag </li></ul></ul><ul><ul><li>and that's all ! </li></ul></ul>
  13. 13. Basic social plugins <ul><ul><li>Meta tags </li></ul></ul><ul><ul><li>Login Button </li></ul></ul>
  14. 14. Basic social plugins <ul><ul><li>Like button </li></ul></ul><ul><ul><li>Fan box </li></ul></ul>
  15. 15. Server side integration  with Authlogic
  16. 16. Sample Application <ul><ul><li>Rails 3.0.3 </li></ul></ul><ul><ul><li>devise (omniauthable) </li></ul></ul><ul><ul><li>fgraph </li></ul></ul><ul><ul><li>facebook javascript sdk </li></ul></ul><ul><ul><li>https://github.com/chytreg/rupy_fb_app </li></ul></ul>
  17. 17. Sample Application
  18. 18. Bibliography <ul><ul><li>http://facebook.com </li></ul></ul><ul><ul><li>http://developers.facebook.com/docs/api </li></ul></ul><ul><ul><li>http://github.com/jugend/fgraph </li></ul></ul><ul><ul><li>http://fbrell.com/examples </li></ul></ul>
  19. 19. Thank you for attention http://jablko.biz

×