MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Passing parameters through install app page

Last post 05-15-2008 3:11 PM by rondata@myspace.com. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 04-07-2008 5:52 AM

    Passing parameters through install app page

    Making a new thread, since well, nobody is responding in the previous ones.

     

    Would it be possible, to allow people to navigate a user to the application profile page (www.myspace.com/#xxx) and then do

    ?next=encodeURI(some params).

     

    So that the install callback, was sent those params?  or the canvas page was sent those params on a redirect?

     Facebook has this functionality, and it is very very useful for enhancing the applicaiton experience etc.

  • 04-07-2008 11:47 AM In reply to

    Re: Passing parameters through install app page

    function canvasURL(url) {
      var cview = gadgets.views.getSupportedViews()["canvas"];
      var params = {path: encodeURIComponent(url) };
      gadgets.views.requestNavigateTo(cview, params);
    }

    Have this in your home and/or profile JS and then when you generate the file on your server

     <a href="BLOCKED SCRIPTcanvasURL('senddrink.ihtml%3fid%3d:id&amp;step%3d2')">Send Drink</a>

    will send the request to the canvas page with the variable "p" containing what you put in the call to canvasURL

    Not sure if this is what you need but might point you in the right direction.

     

     

  • 04-08-2008 8:31 AM In reply to

    Re: Passing parameters through install app page

     Yeah.. I had that working.

     

    More what i'm talking about.. is imagine this:

    www.myspace.com/1234567890 is yuour application profile page (where people add it).

    so you provide a href.. www.myspace.com/1234567890?next={time:morning}

    So when they click "Add" on the app... the install callback URL.. gets passed {time:morning} or whatever.

    This allows an app that is added, to have params passed *to it*.

     

    Facebook does this with ?next.  THere are so many good uses for this.. for enchancing experience etc..

     

  • 04-08-2008 9:40 AM In reply to

    Re: Passing parameters through install app page

    Hi Roger, 

    The help description for application URI that you can set in application details (while editing app) says

    "The Application URI is a unique OpenSocial required namespace/identifier that your application uses to identify itself to MySpace. The domain should be one that you own or control (such as that of your company or blog). An example of an application URI might be: http://<yourdomain.com>/myspace_apps/<appname>."

    Hence, if you set your app uri to your domain, then, the request will first hit your domain where you can do the logging or tracking kind of stuff and then redirect the request to your application profile on MySpace.com.

    The above description is purely my guess. I have'nt tried it yet. I am about to do it. If you experiment this, please publish your findings here. It will be helpful to many of us.

  • 04-08-2008 10:00 AM In reply to

    Re: Passing parameters through install app page

     My understanding is that the Application URI is purely an OAuth parameter.. I dont think that this URI has any impact on the application install/start flow.

  • 04-08-2008 12:16 PM In reply to

    Re: Passing parameters through install app page

    Currently.. to add an app.. you have to visit its app profile.. and then click on the add button.

    All i'm saying.. is that if something sent you to that add page, with some "extra" params on the url.. it would be great.. if after you clicked add.. if it passed along the params

     

    Pre - Viral API... going to the app profile page and clicking "Add this application" is the *only* way to add an app... that is why i'm targetting that scenario for passing params

     

  • 04-09-2008 5:14 AM In reply to

    Re: Passing parameters through install app page

    Hey,

    I can send this up with the latest batch of requests/enhancements

     

    Roger:

    Currently.. to add an app.. you have to visit its app profile.. and then click on the add button.

    All i'm saying.. is that if something sent you to that add page, with some "extra" params on the url.. it would be great.. if after you clicked add.. if it passed along the params

     

    Pre - Viral API... going to the app profile page and clicking "Add this application" is the *only* way to add an app... that is why i'm targetting that scenario for passing params

     

     
  • 05-08-2008 8:27 AM In reply to

    • Joe
    • Not Ranked
    • Joined on 04-25-2008
    • Posts 1

    Re: Passing parameters through install app page

     Has there been any update on this?

  • 05-12-2008 12:46 PM In reply to

    Re: Passing parameters through install app page

    I'm a bit surprised MySpace does not support this yet. Especially on social networks you want to offer possibilities to personalise the user's environment. Facebook, Bebo, Orkut etc. do offer this functionality for apps from the start. On Facebook I have the YouTube TV app running where people can customize their own video playlists and channels during installation. It is really a must have!

  • 05-12-2008 1:15 PM In reply to

    Re: Passing parameters through install app page

    This entire topic is about 45 days old.. with no response whatsoever from Myspace

     

    rondata =-> saying things "go up" when we know they will never "come back down" is painful haha

     

  • 05-14-2008 9:35 AM In reply to

    Re: Passing parameters through install app page

     It's painful for me too. I don't always get updates.

     

    Rhonda 

  • 05-15-2008 3:11 PM In reply to

    Re: Passing parameters through install app page

    This is already on our enhancement list.  :)

    Granted enhancements are a lower priority, but it is there.

    Rhonda

     

Page 1 of 1 (12 items)