ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Gi?i Thi?u

? ºÝºÝߣ ch? mang t¨ªnh ch?t gi?i thi?u nh?ng ki?n th?c c? b?n. M?t
s? n?i dung c¨® th? kh?ng ch¨ªnh x¨¢c v¨¤ ?? l?i th?i.
? N?u c?n t¨¤i li?u chi ti?t (ti?ng vi?t) vui l¨°ng li¨ºn h? t¨¢c gi?.
M?c l?c

? Hi?n tr?ng s? d?ng Facebook ? Vi?t Nam
? T?ng quan v? Facebook platform
? Nguy c? m?t an to¨¤n th?ng tin v¨¤ gi?i ph¨¢p kh?c ph?c
Hi?n tr?ng s? d?ng facebook t?i Vi?t
Nam
Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam
? 8.2 M
? 6.8 M

? 1.9 M
FACEBOOK

ZING

YUME
Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam

? Vi?t Nam l¨¤ n??c s? t?ng tr??ng v? ng??i d¨´ng facebook l?n
nh?t, t?i 146% trong 6 th¨¢ng.
? C? m?i 3s l?i c¨® m?t ng??i Vi?t Nam ??ng k? facebook
? 94% ng??i dung facebook t?i Vi?t Nam c¨® ?? tu?i d??i 35
Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam

Ph?n l?n ng??i d¨´ng facebook t?i Vi?t
Nam kh?ng quan t?m t?i vi?c b?o m?t
c¨¢c th?ng tin c¨¢ nh?n tr¨ºn m?ng x? h?i
Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam

? ?i?u ?¨® ??t h? v¨¤o m?t t¨¬nh th?
nguy hi?m c¨® th? b? l?y c?p th?ng
tin c¨¢ nh?n nh? s?t, th?ng tin t¨¤i
kho?n, th? t¨ªn d?ng¡­
? S? d?ng ?ng d?ng kh?ng r?
ngu?n g?c v¨¤ c?p quy?n t¨´y ti?n l¨¤
m?t nguy¨ºn nh?n.
T¨¬m hi?u v? facebook platform
Facebook platform l¨¤ g¨¬?

? Facebook platform l¨¤ m?i tr??ng l?p tr¨¬nh cung c?p c¨¢c d?ch
v? m?ng x? h?i cho b¨ºn th? ba gi¨²p h? t?o ra c¨¢c ?ng d?ng truy
c?p t?i d? li?u tr¨ºn facebook g?i l¨¤ facebook API
? Facebook API cung c?p c¨¢c t¨ªnh n?ng x¨¢c th?c v¨¤ k?t n?i
ng??i d¨´ng t? facebook t?i ?ng d?ng b¨ºn th? ba g?i l¨¤
facebook login
? D? li?u ng??i d¨´ng v¨¤ m?i quan h? gi?a ch¨²ng g?i l¨¤ Open
Graph. Facebook API cung c?p c¨¢ch th?c x? l? ch¨²ng th?ng
qua Graph API v¨¤ FQL
Open Graph

? Story: L¨¤ m?t ho?t ??ng m¨¤ ng??i d¨´ng ?? th?c hi?n v¨¤
publish.
V¨ª d?: V?n nguy?n v?a ho¨¤n th¨¤nh level 1 tr¨ºn Candy Crush;
M¨¨o xinh v?a xem m?t video tr¨ºn Youtube¡­
? The actor: L¨¤ ng??i t?o ra m?t ¡°story¡± (V?n Nguy?n)
? The app: L¨¤ ?ng d?ng t?o n¨ºn story thay m?t cho The actor
? The action: L¨¤ h¨¤nh ??ng c?a ng??i d¨´ng (ho¨¤n th¨¤nh)
? The object: L¨¤ ??i t??ng m¨¤ The actor t??ng t¨¢c b?ng The
action th?ng qua The app. (Candy Crush)
Open Graph
Facebook Login

? ?? k?t n?i v¨¤ truy c?p d? li?u ng??i d¨´ng tr¨ºn facebook, ?ng
d?ng c?n ???c x¨¢c th?c (Authentication) v¨¤ c?p quy?n
(Authorization).
? Facebook s? d?ng Oauth 2.0 ?? x¨¢c th?c v¨¤ c?p quy?n.
? C¨¢c quy?n (permission) tr¨ºn facebook:
?
?
?
?
?

Email permission: quy?n truy c?p email c?a ng??i dung
Extended perms: read_friendlists, read_mailbox¡­
Extended Profile Properties:
user_about_me, user_birthday, user_photos¡­
Open Graph Permissions: publish_actions¡­.
Page Permissions: manage_pages¡­
Facebook Login

? Facebook Platform h? tr? hai ki?u OAuth 2.0 cho vi?c ??ng
nh?p ng??i d¨´ng: Server-side v¨¤ Client-side. Server-side
???c s? d?ng trong tr??ng h?p c?n g?i t?i Graph API t? web
server. Client-side ???c s? d?ng khi c?n g?i t?i Graph API t?
client, nh? JavaSript tr¨ºn tr¨¬nh duy?t ho?c ?ng d?ng mobile.
? Facebook Oauth 2.0 di?n ra qua ba b??c sau: User
authentication, App Authorization v¨¤ App authentication.
Facebook Login ¨C Oauth 2.0 ¨C Sever-side
Facebook Login ¨C Oauth 2.0 ¨C Client-side
Nguy c? m?t an to¨¤n th?ng tin
v¨¤ gi?i ph¨¢p kh?c ph?c
Nguy c? m?t an to¨¤n th?ng tin

? ?ng d?ng k?t n?i v?i facebook platform ti?m ?n nh?ng nguy c?
m?t an to¨¤n th?ng tin nh?:
? L? th?ng tin c¨¢ nh?n: ti?u s?, s? ?i?n tho?i, ??a ch?, ??i t? c¨¢
nh?n¡­
? M?t t¨¤i kho?n c¨¢c d?ch v? nh? online banking, th?ng tin th? t¨ªn
d?ng
? C¨¢c th?ng tin kh¨¢c c¨® th? ???c d¨´ng ?? th?c hi?n h¨¤nh vi ph?m
t?i
V¨ª d?:
th?c t? ?? c¨® tr??ng h?p t?i ph?m s? d?ng t¨ªnh n?ng checkin c?a ng??i
d¨´ng facebook ?? bi?t khi n¨¤o h? r?i kh?i nh¨¤ v¨¤ ti?n h¨¤nh tr?m c?p t¨¤i s?n..
Nguy c? m?t an to¨¤n th?ng tin

? C¨¢c c¨¢ch th?c s? d?ng:
?
?

Trong q¨²a tr¨¬nh x¨¢c th?c, OAuth 2.0 c¨® th? b? t?n c?ng
L?i d?ng s? s? h? c?a ng??i d¨´ng: S? d?ng ?ng d?ng kh?ng r? ngu?n
g?c, c?p quy?n quan tr?ng cho ?ng d?ng¡­
Ph??ng ph¨¢p b?o v?

? S? d?ng giao th?c m? h¨®a khi s? d?ng ?ng d?ng
? Kh?ng s? d?ng c¨¢c ?ng d?ng c¨® ngu?n g?c kh?ng r? rang
? Kh?ng s? d?ng c¨¢c ?ng d?ng ?¨°i h?i nh?ng quy?n kh?ng c?n
thi?t
? Kh?ng khai b¨¢o danh t¨ªnh th?t tr¨ºn facebook
The end.

More Related Content

Facebook platform

  • 1. Gi?i Thi?u ? ºÝºÝߣ ch? mang t¨ªnh ch?t gi?i thi?u nh?ng ki?n th?c c? b?n. M?t s? n?i dung c¨® th? kh?ng ch¨ªnh x¨¢c v¨¤ ?? l?i th?i. ? N?u c?n t¨¤i li?u chi ti?t (ti?ng vi?t) vui l¨°ng li¨ºn h? t¨¢c gi?.
  • 2. M?c l?c ? Hi?n tr?ng s? d?ng Facebook ? Vi?t Nam ? T?ng quan v? Facebook platform ? Nguy c? m?t an to¨¤n th?ng tin v¨¤ gi?i ph¨¢p kh?c ph?c
  • 3. Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam
  • 4. Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam ? 8.2 M ? 6.8 M ? 1.9 M FACEBOOK ZING YUME
  • 5. Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam ? Vi?t Nam l¨¤ n??c s? t?ng tr??ng v? ng??i d¨´ng facebook l?n nh?t, t?i 146% trong 6 th¨¢ng. ? C? m?i 3s l?i c¨® m?t ng??i Vi?t Nam ??ng k? facebook ? 94% ng??i dung facebook t?i Vi?t Nam c¨® ?? tu?i d??i 35
  • 6. Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam Ph?n l?n ng??i d¨´ng facebook t?i Vi?t Nam kh?ng quan t?m t?i vi?c b?o m?t c¨¢c th?ng tin c¨¢ nh?n tr¨ºn m?ng x? h?i
  • 7. Hi?n tr?ng s? d?ng facebook t?i Vi?t Nam ? ?i?u ?¨® ??t h? v¨¤o m?t t¨¬nh th? nguy hi?m c¨® th? b? l?y c?p th?ng tin c¨¢ nh?n nh? s?t, th?ng tin t¨¤i kho?n, th? t¨ªn d?ng¡­ ? S? d?ng ?ng d?ng kh?ng r? ngu?n g?c v¨¤ c?p quy?n t¨´y ti?n l¨¤ m?t nguy¨ºn nh?n.
  • 8. T¨¬m hi?u v? facebook platform
  • 9. Facebook platform l¨¤ g¨¬? ? Facebook platform l¨¤ m?i tr??ng l?p tr¨¬nh cung c?p c¨¢c d?ch v? m?ng x? h?i cho b¨ºn th? ba gi¨²p h? t?o ra c¨¢c ?ng d?ng truy c?p t?i d? li?u tr¨ºn facebook g?i l¨¤ facebook API ? Facebook API cung c?p c¨¢c t¨ªnh n?ng x¨¢c th?c v¨¤ k?t n?i ng??i d¨´ng t? facebook t?i ?ng d?ng b¨ºn th? ba g?i l¨¤ facebook login ? D? li?u ng??i d¨´ng v¨¤ m?i quan h? gi?a ch¨²ng g?i l¨¤ Open Graph. Facebook API cung c?p c¨¢ch th?c x? l? ch¨²ng th?ng qua Graph API v¨¤ FQL
  • 10. Open Graph ? Story: L¨¤ m?t ho?t ??ng m¨¤ ng??i d¨´ng ?? th?c hi?n v¨¤ publish. V¨ª d?: V?n nguy?n v?a ho¨¤n th¨¤nh level 1 tr¨ºn Candy Crush; M¨¨o xinh v?a xem m?t video tr¨ºn Youtube¡­ ? The actor: L¨¤ ng??i t?o ra m?t ¡°story¡± (V?n Nguy?n) ? The app: L¨¤ ?ng d?ng t?o n¨ºn story thay m?t cho The actor ? The action: L¨¤ h¨¤nh ??ng c?a ng??i d¨´ng (ho¨¤n th¨¤nh) ? The object: L¨¤ ??i t??ng m¨¤ The actor t??ng t¨¢c b?ng The action th?ng qua The app. (Candy Crush)
  • 12. Facebook Login ? ?? k?t n?i v¨¤ truy c?p d? li?u ng??i d¨´ng tr¨ºn facebook, ?ng d?ng c?n ???c x¨¢c th?c (Authentication) v¨¤ c?p quy?n (Authorization). ? Facebook s? d?ng Oauth 2.0 ?? x¨¢c th?c v¨¤ c?p quy?n. ? C¨¢c quy?n (permission) tr¨ºn facebook: ? ? ? ? ? Email permission: quy?n truy c?p email c?a ng??i dung Extended perms: read_friendlists, read_mailbox¡­ Extended Profile Properties: user_about_me, user_birthday, user_photos¡­ Open Graph Permissions: publish_actions¡­. Page Permissions: manage_pages¡­
  • 13. Facebook Login ? Facebook Platform h? tr? hai ki?u OAuth 2.0 cho vi?c ??ng nh?p ng??i d¨´ng: Server-side v¨¤ Client-side. Server-side ???c s? d?ng trong tr??ng h?p c?n g?i t?i Graph API t? web server. Client-side ???c s? d?ng khi c?n g?i t?i Graph API t? client, nh? JavaSript tr¨ºn tr¨¬nh duy?t ho?c ?ng d?ng mobile. ? Facebook Oauth 2.0 di?n ra qua ba b??c sau: User authentication, App Authorization v¨¤ App authentication.
  • 14. Facebook Login ¨C Oauth 2.0 ¨C Sever-side
  • 15. Facebook Login ¨C Oauth 2.0 ¨C Client-side
  • 16. Nguy c? m?t an to¨¤n th?ng tin v¨¤ gi?i ph¨¢p kh?c ph?c
  • 17. Nguy c? m?t an to¨¤n th?ng tin ? ?ng d?ng k?t n?i v?i facebook platform ti?m ?n nh?ng nguy c? m?t an to¨¤n th?ng tin nh?: ? L? th?ng tin c¨¢ nh?n: ti?u s?, s? ?i?n tho?i, ??a ch?, ??i t? c¨¢ nh?n¡­ ? M?t t¨¤i kho?n c¨¢c d?ch v? nh? online banking, th?ng tin th? t¨ªn d?ng ? C¨¢c th?ng tin kh¨¢c c¨® th? ???c d¨´ng ?? th?c hi?n h¨¤nh vi ph?m t?i V¨ª d?: th?c t? ?? c¨® tr??ng h?p t?i ph?m s? d?ng t¨ªnh n?ng checkin c?a ng??i d¨´ng facebook ?? bi?t khi n¨¤o h? r?i kh?i nh¨¤ v¨¤ ti?n h¨¤nh tr?m c?p t¨¤i s?n..
  • 18. Nguy c? m?t an to¨¤n th?ng tin ? C¨¢c c¨¢ch th?c s? d?ng: ? ? Trong q¨²a tr¨¬nh x¨¢c th?c, OAuth 2.0 c¨® th? b? t?n c?ng L?i d?ng s? s? h? c?a ng??i d¨´ng: S? d?ng ?ng d?ng kh?ng r? ngu?n g?c, c?p quy?n quan tr?ng cho ?ng d?ng¡­
  • 19. Ph??ng ph¨¢p b?o v? ? S? d?ng giao th?c m? h¨®a khi s? d?ng ?ng d?ng ? Kh?ng s? d?ng c¨¢c ?ng d?ng c¨® ngu?n g?c kh?ng r? rang ? Kh?ng s? d?ng c¨¢c ?ng d?ng ?¨°i h?i nh?ng quy?n kh?ng c?n thi?t ? Kh?ng khai b¨¢o danh t¨ªnh th?t tr¨ºn facebook