Russ Cobbe:
The /session API call will do that for you.
What is the address for the API? I only know of the REST API (
http://developer.myspace.com/community/RestfulAPIs/resources.aspx).
Russ Cobbe:
I assume you just put localhost info there for example instead of the real info.
For development, the localhost reference works fine so this was real info. When we go to production, we will use an internet-accessible address.
Russ Cobbe:
They get redirected back to the URL specified as your external iframe URL so if that is not specified in your app they probably go to their myspace homepage. So just set that and it should load up your application in a frame within myspace.
I have the iframe URL set to: http://127.0.0.1:3003/myspace/ms_install. When I install my MySpace application, I land here: http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=108329&newinstall=1. This is a MySpace page with content provided by my external application. I don't want to land in an MySpace IFrame at this point. Is this avoidable?
I think I'm developing an atypical MySpace application. My external application (EA) wants to give users the ability to access their MySpace account information. The only way I know how to do this is to
- create a MySpace application (MA),
- have users install it and give permission for my EA to access their account, and
- have the EA access the account information via the MA using the REST API.
I would like to do all of this (except for account login and MA install) completely within my EA. I want users to start in my EA then be asked to install the MA and then return immediately to my EA as opposed to getting stuck in the MA on the MySpace site.
If users are on a page in my EA and they already have installed MA and have a valid session, they should have to go to a MySpace page.
Thanks again for your time Russ.