Building Apps With MySpace SDKs
          Chak Nanga (Architect)
     KiamChoo (Sr. Technical Evangelist)
Introduction


• SDKs support quot;on-sitequot; and quot;off-sitequot; app development

• quot;On-Sitequot;/OpenSocial App...
MySpace SDKs Overview


• MySpace REST APIs are at the core of the SDKs
• SDKs provide a high level interface to the REST ...
SDK Contents


• Core API library and dependent libraries (Oauth, OpenID
  etc)
• Samples for supported usage scenarios
  ...
Building an “on-site” application


• Choose the quot;External IFramequot; radio button in the Canvas
  Surface tab
• Ente...
Building an “on-site” application


• Canvas view rendered in an IFrame
• Iframe “src” set to IFrame URL (signed request f...
On-Site App Demo / Code
Building a MySpaceID application
OAuth Delegated Access Demo


• Application steps
   – Get request token

   – Redirect to authorization page (on MySpace)...
OAuth Delegated Access Code


• Get Request Token + Redirect to Service Provider
OAuth Delegated Access Code


• Get Access Token (in the Service Provider callback)
OAuth Delegated Access Code


• Access protected resources
OpenID + OAuth “hybrid” Demo


• MySpace is a “Combined Provider” (OpenID Provider +
  OAuth Service Provider)
• OpenIDOAu...
OpenID + OAuth “hybrid” Code


• Embed OAuth approval request
OpenID + OAuth “hybrid” Code


• Exchange approved request token for access token
• Access user data
Thank You!


• Additional Information
   – http://developer.myspace.com/myspaceid/
Building Apps with MySpace SDKs
Upcoming SlideShare
Loading in...5
×

Building Apps with MySpace SDKs

1,733

Published on

This presentation describes how to build on-site/off-site apps with the MySpaceID SDKs.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,733
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Building Apps with MySpace SDKs

  1. 1. Building Apps With MySpace SDKs Chak Nanga (Architect) KiamChoo (Sr. Technical Evangelist)
  2. 2. Introduction • SDKs support quot;on-sitequot; and quot;off-sitequot; app development • quot;On-Sitequot;/OpenSocial Applications (Canvas View) – OpenSocial app’s canvas view hosted on your server – Written using a language/framework of your choice – App logic hosted on your servers and displayed on MySpace in an IFrame • quot;Off-Site”/MySpaceID Applications – Apps/Services that leverage MySpace social data outside MySpace – Written in a language/framework of your choice – Apps hosted on your servers
  3. 3. MySpace SDKs Overview • MySpace REST APIs are at the core of the SDKs • SDKs provide a high level interface to the REST APIs – High level APIs to get social data from MySpace (friends, profile etc.) – Abstracts away the protocol details (OAuth signing) • Available in multiple languages – C#, Java, PHP, Python, Ruby • Consistent interface across all the languages • Open-sourced and hosted on google code • Contributors are welcome!
  4. 4. SDK Contents • Core API library and dependent libraries (Oauth, OpenID etc) • Samples for supported usage scenarios – OAuth Delegated Access (“3-Legged” Oauth) – OpenID + OAuth Hybrid • Documentation
  5. 5. Building an “on-site” application • Choose the quot;External IFramequot; radio button in the Canvas Surface tab • Enter the IFrame URL in the text box
  6. 6. Building an “on-site” application • Canvas view rendered in an IFrame • Iframe “src” set to IFrame URL (signed request from MySpace) • Verify signatures when request hits your servers • Extract user id from the request • Utilize the user id in the SDK calls
  7. 7. On-Site App Demo / Code
  8. 8. Building a MySpaceID application
  9. 9. OAuth Delegated Access Demo • Application steps – Get request token – Redirect to authorization page (on MySpace) – User approves application request – MySpace redirects to the supplied callback URL – Get access token – Access social data using the SDK
  10. 10. OAuth Delegated Access Code • Get Request Token + Redirect to Service Provider
  11. 11. OAuth Delegated Access Code • Get Access Token (in the Service Provider callback)
  12. 12. OAuth Delegated Access Code • Access protected resources
  13. 13. OpenID + OAuth “hybrid” Demo • MySpace is a “Combined Provider” (OpenID Provider + OAuth Service Provider) • OpenIDOAuth extension (“hybrid”) – Combines authentication and authorization screen for two protocols – Better user experience • Application steps – Use OpenID library to initiate authentication – Embed OAuth approval request into OpenID authentication request – Combined Provider returns approved request token – Combined Cosumer exchanges the request token for access token – Access social data using the SDK
  14. 14. OpenID + OAuth “hybrid” Code • Embed OAuth approval request
  15. 15. OpenID + OAuth “hybrid” Code • Exchange approved request token for access token • Access user data
  16. 16. Thank You! • Additional Information – http://developer.myspace.com/myspaceid/

×