The importance of /me
-
Upload
bruno-pedro -
Category
Internet
-
view
510 -
download
0
description
Transcript of The importance of /me
![Page 1: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/1.jpg)
30 May 2014Bruno Pedro
The Importance of /me
pict
ure
© W
erne
r Kra
use
![Page 2: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/2.jpg)
Bruno Pedro Web and Cloud Computing Technologist with over ten years’ experience. CTO of GetApp. Editor at APIUX.com.
http://brunopedro.com/
![Page 3: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/3.jpg)
Web giants are waging a battle over your online identity. — WSJ, May 21 2014
![Page 4: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/4.jpg)
Facebook and Google will eventually be removed from all Yahoo properties. – Reuters, March 5 2014
![Page 5: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/5.jpg)
53%
Social login preferencesJanuary – March 2014
source: Gigya
![Page 6: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/6.jpg)
Facebook business is about monetizing the people in their network. — Businessweek, 2009
![Page 7: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/7.jpg)
Use Facebook to actually prefill data that your users might have to type. – Smashing Magazine
![Page 8: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/8.jpg)
OAuth2 + proper scopes.
![Page 9: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/9.jpg)
pict
ure
© W
erne
r Kra
use
/me is a way to expose information about the authorized user.
![Page 10: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/10.jpg)
/me
‘me’ person ID
/account/verify_credentials
/user
![Page 11: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/11.jpg)
What about your API?
![Page 12: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/12.jpg)
What to expose• username
• user picture or avatar
• first name and last name
• language
• time zone
• country
![Page 13: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/13.jpg)
What not to expose• e-mail address
• phone number
• billing information
• financial information
• mailing address
• current locationrisk
![Page 14: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/14.jpg)
Use the appropriate OAuth2 scopes.
![Page 15: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/15.jpg)
Use the appropriate OAuth2 scopes.
“access my basic information”
![Page 16: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/16.jpg)
Expose safe information!
![Page 17: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/17.jpg)
Offer a way to revoke permissions!
![Page 18: The importance of /me](https://reader035.fdocuments.net/reader035/viewer/2022062418/554f6bb9b4c9058a148b4f52/html5/thumbnails/18.jpg)
Questions?