Facebook Developer Sessions: Open Graph Protocol, Credits, Analytics, and Insights
Table of Contents
- Sessions
- New Tools
- Techniques
- 12:30pm Making Things Fast
- Questions
- Apply the TOSS process for the redirections
- Creating user automatically
- What is realtime event notification
- Parallel JS load -> lazy load of JS
- Active session required for push notification of user data change
- multi-queries
- What are the timeouts for application response
- Slow content rendering
- New features
- New Connect methods should be updated on the Wiki
- Does pre-load query count against 15s timeout
- Questions
- DONE 1:30pm Integrating with Facebook
- New like feature
- OAuth 2 implemented
- Much cleaner interface for getting the access token
- Client-side access token is likely the easiest
- Server-side requires redirectors
- Mobile also uses OAuth
- Facebook Connect library is open and available on GitHub
- Size is 20kb for the library rather than 80kb
- Auth token is now trivial to acquire and save
- Graph API has access to public information by default
- Social Plugins
- Authentication
- New caching policy: remove the 24h restriction
- How do the widgets decrade
- 2:30pm Focus on Feed
- 3:30pm Design the Social Web
- 12:30pm Making Things Fast
- Facebook Strategy
Sessions
This is open graph protocal, credits, analytics and insights
New Tools
DONE 12:30pm Open Graph
12:25pm PST: Mark Kinsey and Austin Haugen from Facebook will be presenting on Social Plugins and the Open Graph Protocol.
http://developers.facebook.com/docs/api
Like button is a plugin. Trivial to implement assuming that some metadata is present for the page.
Use the Open Graph protocol to turn objects into URLs.
Like link rel="canonical".
<iframe src="http://www.facebook.com/widgets/like.php?href=http://example.com" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe>
1:30pm Facebook Credits
DONE 2:30pm Graph API
Mike Vernac
Arjun Banker http://www.linkedin.com/in/arjunbanker
Multi-stage UI creates measureable drop-off
New dialog driven by user testing
New Data Model
Search
https://graph.facebook.com/search?q=
New parameters user type event.
Realtime updates
Stability and documentation
Hackathon several weeks ago; should be considered stable.
Internal release to confirm how some of the core infrastructure should work to allow for this to release cleanly. Would need to have the core tools established before this could happen.
3:30pm Analytics Through Insights
Techniques
12:30pm Making Things Fast
Find fast query for the fast set. If you don't have enough data use delay.
Don't over fetch.
Don't over filter.
api.facebook.com returns around 400ms. However, a backend memcache server returns in 10ms given the caching policy.
- Get firstName and lastName for all users that have added the application.
- Notification delivered when something has changed for a user
- Make request against api
- Update the local cache
There is a new api-read.facebook.com: designed to shave off 70 ms off cross-coast penalty.
Access to developers who wrote the libraries.
Significant amount of change in the last year.
Questions
Apply the TOSS process for the redirections
These are all new features after a user has authed the page.
Creating user automatically
What is realtime event notification
Parallel JS load -> lazy load of JS
Lazy loading will be coming soon. Things not often used will be lazy loaded. No time.
This is based on user data that is being generated now.
Active session required for push notification of user data change
multi-queries
Characteristics of the query requires empirical testing to determine where the slow and fast backend limits would be based on the complexity of the query.
What are the timeouts for application response
15s
Make sure you have a histogram listing all response times. 12s+ should be an error.
Slow content rendering
Need to make a decision behind what is the core content that needs to show. The flow depends on making trade-offs. Entirely possible to create a perfect page with comprehensive data that will never load.
New features
Application configuration includes these elements. Would need to treat strategic as the core
New Connect methods should be updated on the Wiki
Not strongly typed.
Does pre-load query count against 15s timeout
DONE 1:30pm Integrating with Facebook
New like feature
Simple one line reference.
Like applied to products on Levi's.
Pandora: Artist
This all then feeds back into the social graph.
OAuth 2 implemented
Much cleaner interface for getting the access token
Client-side access token is likely the easiest
Server-side requires redirectors
Mobile also uses OAuth
Facebook Connect library is open and available on GitHub
Fork and fix if necessary.
Size is 20kb for the library rather than 80kb
Auth token is now trivial to acquire and save
Graph API has access to public information by default
Social Plugins
Authentication
New caching policy: remove the 24h restriction
How do the widgets decrade
2:30pm Focus on Feed
Developer teams appear to drive metrics as well as UI
Look at a problem rather than driving new changes without a change statement
3:30pm Design the Social Web
Facebook Strategy
What are core technologies
What changed in last six months
Simplification of