FQL + DjCelery<visgean@gmail.com>
Use cases●   Exporting messages and other data from    facebook●   Graphing things    ●   People love graphs!●   →Making m...
Technology●   Django●   Postgresql●   Django-social-auth●   Redis●   Facebook (python-for-facebook)●   Rabbit-mq
What is FQL●   SQL like facebook API●   Many tables●   Limitations    ●   30 objects per query    ●   600 queries per user...
How it works●   User clicks on Login with facebook button    ●   Social-auth handles user creation●   Signal handler creat...
Code
Save messages
How to use it?
Recommendations●   Use NoSQL Dbs    ●   Make data structures for every view!●   Do not use initial fixtures with django so...
Thank you●   Feel free to contact me at    ●   visgean@gmail.com    ●   @visgean    ●   Github.com/visgean    ●   Source c...
Upcoming SlideShare
Loading in …5
×

Trendyou

717 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
717
On SlideShare
0
From Embeds
0
Number of Embeds
46
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Trendyou

  1. 1. FQL + DjCelery<visgean@gmail.com>
  2. 2. Use cases● Exporting messages and other data from facebook● Graphing things ● People love graphs!● →Making money!
  3. 3. Technology● Django● Postgresql● Django-social-auth● Redis● Facebook (python-for-facebook)● Rabbit-mq
  4. 4. What is FQL● SQL like facebook API● Many tables● Limitations ● 30 objects per query ● 600 queries per user per 10 minutes ● 600 * 30 = 18000 objects per 10 minutes● 1 million monthly users● SELECT thread_id, message_count,recipients FROM thread WHERE folder_id=0
  5. 5. How it works● User clicks on Login with facebook button ● Social-auth handles user creation● Signal handler creates a new celery task ● Worker downloads all the messages● User receives email when the data is ready
  6. 6. Code
  7. 7. Save messages
  8. 8. How to use it?
  9. 9. Recommendations● Use NoSQL Dbs ● Make data structures for every view!● Do not use initial fixtures with django social auth
  10. 10. Thank you● Feel free to contact me at ● visgean@gmail.com ● @visgean ● Github.com/visgean ● Source code: https://gist.github.com/fc851a2081de36a5f4fa

×