1) The document discusses ways to build applications that leverage Yahoo's social platforms and large audience, including open applications and using Yahoo's social APIs.
2) It provides details on the Yahoo Application Platform (YAP) which allows building small interactive applications, and accessing user data through YAP and Yahoo's social APIs.
3) Code examples are given for authenticating with OAuth and making API calls from PHP and Python to fetch user profile data and updates.
3. Two ways to hack Yahoo! Social
1) Open Applications 2) Social APIs
HOME PAGE
MY YAHOO!
SOCIAL DIRECTORY UPDATES
Y! TOOLBAR
PULSE
…more coming soon
CONTACTS STATUS
Run your applications across Yahoo! Syndicate UGC
Reach large Yahoo! audience Get referral traffic back to
your site
4. Open Applications
HOME PAGE
MY YAHOO!
Y! TOOLBAR
PULSE
…more coming soon
5.
6.
7.
8.
9.
10. Why hack open apps?
EASY TO BUILD
‐ Quickly prototype idea within 24 hours ENGAGING
‐ Permanently parked in high‐traffic starBng points
‐ Launch directly in producBon. No blockers! ‐ Viral in nature
DISTRIBUTABLE
‐ Discovery
‐ PromoBon
‐ Media buy enhanced
SOCIAL
‐ Access user Profile & ConnecBon data
‐ InteracBve, personalized
MY APP
12. YAP : Small View
• Small size
• Cached, needs to be
fast
• Supports only: Html,
Inline css, YML
13. YAP: Canvas View
• Loads external
URL from your
server
• Support for:
• Open social
• YML, CSS, HTML,
JS
• Runs in an iFrame
with Caja
• Yahoo! SDK
14. 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
15. 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
‐ ‐
16. 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:profile-pic uid=”XXX”>
– <yml:name uid=”viewer” linked="true"/>
– <yml:friend-selector uid="viewer"/>
– <yml:user-badge uid="viewer" linked="true” />
More: hXp://developer.yahoo.com/yap/guide/yapdev‐yml.html
‐ ‐
17. 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
18. 2. Y! Social APIs
hXp://developer.yahoo.com/social/
19. User Data ConnecBons
Status
Updates
hXp://pulse.yahoo.com/sahni_saurabh
24. Y! Social APIs
SOCIAL
DIRECTORY
YAHOO!
CONTACTS
STATUS
UPDATES
hXp://developer.yahoo.com/social/
25. Leverage Yahoo!’s 600+ million
users in your social
applications
with Yahoo!’s Social APIs.
26. Two ways use Social APIs
Open applicaBons are applicaBons
that run on the Yahoo! network or
other open social containers
OAuth applicaBons are standalone
applicaBons that run off the Yahoo!
network.
41. Updates associated with nytimes.com
select * from
social.updates.search where
link='huffingtonpost.com';
42. Tweets in Yahoo! Updates
select * from
social.updates.search where
source = 'twitter';
43. Updates from your application
select * from
social.updates.search where
source = '7BNRkt42';
44. Y! Social SDK
What can you do?
44
hXp://www.flickr.com/photos/phploveme/2847931240/
45. Yahoo! Social SDK – Features
• Examples for OpenSocial, PHP, Python
• Performs OAuth authorizaiton
• REST calls to the Yahoo! Social Web
Services
– Fetching Profiles
– Fetching and Inserting Updates
– Fetching Connections
– Executing YQL
54. What can you do?
• Materialize Social Graph data for engaging
experiences
• Build apps for Yahoo! network and reach
600M+ audience
• Use updates API to make your hacks viral
• Improve social search experience
• Think social games!
• Personalize your hacks with Yahoo! Profile
data. Use Yahoo! Login.
55. Hack: Updates in your language
hXp://www.flickr.com/photos/dimitridf/2841804136/
71. Social Data with YQL ‐ Recap
select * from social.profile where guid=me
select * from social.connections where
owner_guid=me
select message from social.profile.status where
guid=me
select * from social.updates where guid=me
77. What is OpenSocial?
• OpenSocial API
• For developing applicaUons on social
networks
• Accessing social data (profiles, connecUons)
• Fetching and inserUng acUviUes
• Implemented by many containers
• Develop once, distribute broadly