Hackuzela: Hacking Yahoo! Social
-
Upload
saurabh-sahni -
Category
Technology
-
view
3.063 -
download
3
description
Transcript of Hackuzela: Hacking Yahoo! Social
![Page 1: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/1.jpg)
Saurabh Sahni Developer, Hacker, Evangelist
![Page 2: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/2.jpg)
7/2/10
Our Audience
![Page 3: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/3.jpg)
7/2/10
Two ways to hack Yahoo! Social
1) Open Applications
Run your applications across Yahoo! Reach large Yahoo! audience
2) Social APIs
Syndicate UGC Leverage Yahoo!’s 600+ million users in your social applications
CONTACTS
SOCIAL DIRECTORY
UPDATES
STATUS
HOME PAGE
MY YAHOO!
…more coming soon
Y! TOOLBAR
PULSE
![Page 4: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/4.jpg)
7/2/10
Open Applications
HOME PAGE
MY YAHOO!
…more coming soon
Y! TOOLBAR
PULSE
![Page 5: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/5.jpg)
7/2/10
![Page 6: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/6.jpg)
7/2/10
![Page 7: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/7.jpg)
7/2/10
![Page 8: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/8.jpg)
7/2/10
![Page 9: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/9.jpg)
7/2/10
![Page 10: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/10.jpg)
7/2/10
Why hack open apps?
MY APP
SOCIAL - Access user Profile & Connection data - Interactive, personalized
DISTRIBUTABLE - Discovery - Promotion
- Media buy enhanced
ENGAGING - Permanently parked in high-traffic starting points - Viral in nature
EASY TO BUILD - Quickly prototype idea within 24 hours
- Launch directly in production. No blockers!
![Page 11: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/11.jpg)
7/2/10
YAP: Programming Model
http://www.flickr.com/photos/dimitridf/2841804136/
![Page 12: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/12.jpg)
7/2/10
YAP : Small View
• Small View: • Cached, needs to be fast • Supports only: Html, Inline css, YML
• Can be pushed programmatically
• SetSmallView(guid, newYML)
• Can be updated with fresh content
• yml:include fetches new data from your servers
![Page 13: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/13.jpg)
7/2/10
YAP: Canvas View
• Loads external URL from your server
• Support for: • Open social 0.8 (JS & REST) • YML, CSS, HTML, JS
• Runs in an iFrame with Caja
• Yahoo! SDK
![Page 14: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/14.jpg)
7/2/10
YAP - Accessing User Data
• Guid • Unique identifier for a user • Public info, can be stored on your servers
• Consumer Key / Secret • Specifies “API Scopes” • Enables to query Yahoo! WS • Necessary for OAuth 1.1 authentication • Automatically created for you in devTool
![Page 15: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/15.jpg)
7/2/10 - -
Social Platforms: Available APIs
• Social Directory: One Social Graph • Contacts, connections & profile data
• Updates • Syndicate user content & activity
• Presence • Read, write presence
• SDK simplifies access • Make it easy: YQL
![Page 16: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/16.jpg)
7/2/10 - -
YML: Yummy Language To Get You Started • Enables you to get cool features fast
• <yml:a view=”Full” params=”prefs.php”/> • Enables ajaxy behaviors in SmallView
• <yml:include> • Enables to load fresh content once SmallView is loaded
• <yml:profile-pic uid=”XXX”> • <yml:name uid=”viewer” linked="true"/> • <yml:friend-selector uid="viewer"/> • <yml:user-badge uid="viewer" linked="true” />
More: http://developer.yahoo.com/yap/guide/yapdev-yml.html
![Page 17: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/17.jpg)
7/2/10
YAP Cautions
• Your gadget URL needs to be a prod host • Not all HTML/JS will run for security
• JS/HTML will be cajoled • YML and OpenSocial are whitelisted
• Small view: • No Javascript • NO CSS • No <a> Links except via YML
![Page 18: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/18.jpg)
7/2/10
Production Hosting
http://www.joyent.com/developers/yahoo
![Page 19: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/19.jpg)
7/2/10
2. Social APIs
CONTACTS
SOCIAL DIRECTORY
UPDATES
STATUS
![Page 20: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/20.jpg)
7/2/10 http://developer.yahoo.com/social/
![Page 21: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/21.jpg)
7/2/10
![Page 22: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/22.jpg)
7/2/10
![Page 23: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/23.jpg)
7/2/10
![Page 24: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/24.jpg)
7/2/10
YAHOO! MESSENGER
![Page 25: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/25.jpg)
7/2/10
![Page 26: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/26.jpg)
7/2/10
Easiest way to use Social APIs is via YQL
http://developer.yahoo.com/yql/console/
http://developer.yahoo.com/yql/console/
![Page 27: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/27.jpg)
7/2/10
![Page 28: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/28.jpg)
7/2/10
![Page 29: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/29.jpg)
7/2/10
![Page 30: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/30.jpg)
7/2/10
Updates Firehose
Access all Yahoo! Updates in real time via YQL http://www.flickr.com/photos/thomashawk/250792779/
![Page 31: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/31.jpg)
7/2/10 Updates Firehose
![Page 32: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/32.jpg)
7/2/10
More tuning
Query search: select * from social.updates.search where query='earthquake';
select * from social.updates.search where link='huffingtonpost.com';
![Page 33: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/33.jpg)
Hacking: Updates in your language
http://www.flickr.com/photos/dimitridf/2841804136/
![Page 34: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/34.jpg)
7/2/10
![Page 35: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/35.jpg)
7/2/10
![Page 36: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/36.jpg)
7/2/10
Get Yahoo! SDK http://developer.yahoo.com/social/sdk/
PHP SDK: http://github.com/yahoo/yos-social-php
![Page 37: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/37.jpg)
7/2/10 https://developer.apps.yahoo.com/projects/
![Page 38: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/38.jpg)
7/2/10 https://developer.apps.yahoo.com/projects/
![Page 39: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/39.jpg)
7/2/10
![Page 40: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/40.jpg)
7/2/10
Gadget XML: http://github.com/saurabhsahni/Hacks
![Page 41: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/41.jpg)
7/2/10
![Page 42: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/42.jpg)
7/2/10
![Page 43: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/43.jpg)
7/2/10
![Page 44: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/44.jpg)
7/2/10 Gadget XML: http://github.com/saurabhsahni/Hacks
![Page 45: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/45.jpg)
7/2/10
![Page 46: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/46.jpg)
7/2/10
![Page 47: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/47.jpg)
7/2/10
![Page 48: Hackuzela: Hacking Yahoo! Social](https://reader034.fdocuments.us/reader034/viewer/2022051411/546fca97af7959a90a8b4676/html5/thumbnails/48.jpg)
7/2/10
Links
• Yahoo! Application Platform - http://developer.yahoo.com/yap/
• Yahoo! Social APIs - http://developer.yahoo.com/social/
• Yahoo! Query Language - http://developer.yahoo.com/yql/
• PHP SDK -http://github.com/yahoo/yos-social-php
• Examples - http://github.com/saurabhsahni/Hacks