13. Open Graph
Used to be Facebook Connect
Integrate you web active into Facebook
Semantic Web Standard
13年8月27⽇日星期⼆二
14. Social Plugins
Mashup base on JavaScript
Include: Like Button, Activity Feed,
Recommendations, Like Box, Login
Button, Facepile, Comments, Live Stream
Integrated Your page more with
Facebook
13年8月27⽇日星期⼆二
15. Permission
Ask user for permission with Login
dialog
Access the email, profile information of
the user on Facebook
13年8月27⽇日星期⼆二
18. Who does OAuth work?
Resource
Owner
Client Server
13年8月27⽇日星期⼆二
19. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
13年8月27⽇日星期⼆二
20. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
13年8月27⽇日星期⼆二
21. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
Server ask resource owner to authenticate
13年8月27⽇日星期⼆二
22. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
Server ask resource owner to authenticate
Resource owner authenticates
13年8月27⽇日星期⼆二
23. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
Server ask resource owner to authenticate
Resource owner authenticates
Server issue token to client
13年8月27⽇日星期⼆二
24. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
Server ask resource owner to authenticate
Resource owner authenticates
Server issue token to client
Client confirms access
13年8月27⽇日星期⼆二
25. Who does OAuth work?
Resource
Owner
Client Server
Request of Resource
Redirect to server for authorization
Server ask resource owner to authenticate
Resource owner authenticates
Server issue token to client
Client confirms access
Username
Password
13年8月27⽇日星期⼆二
26. OAuth & OpenID
OAuth is not a replacement for OpenID
OAuth is used to authorize resource
request
OpenID is used to authenticate user
identity
13年8月27⽇日星期⼆二
27. Demo
Open a new Facebook App
JavaScript SDK
Facebook Social Plugin
Graph API Explorer
13年8月27⽇日星期⼆二