Welcome Developers!

in

Welcome!

in

appParams in invite

Last post 03-09-2010 2:35 PM by Joel. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 03-06-2010 11:35 PM

    appParams in invite

    Has anyone been able to pass appParams through an app invite, so when the user accepts an invite the appParams will also be passed through? Thanks, Lijen
  • 03-07-2010 9:42 AM In reply to

    Re: appParams in invite

    I'd love to know this too. Currently it's difficult to improve invites because there is no way to track their performance.
  • 03-07-2010 11:24 PM In reply to

    Re: appParams in invite

    It sounds like its possible based on this:

    http://wiki.developer.myspace.com/index.php?title=App_Invites#Including_contextual_information:_Custom_App_Params

    but unfortunately, theres no documentation on it! Here's my code, its using OS 0.7. Im assuming that I just need to pass some params into the existing call that will get added to the invite button. Anyone?! Thanks in advance

    function sendInvite(userId, name, thumbnailUrl, profileUrl){
    var params = {};
    //Set The title of the message
    params[MyOpenSpace.Message.Field.TITLE] = "Title Of Invite";
    //Set the type of message
    params[MyOpenSpace.Message.Field.TYPE] = "SHARE_APP";

    var message = container.newMessage('Install vDream Message', params);

    container.postTo(message, postback, userId, name, thumbnailUrl, profileUrl);

    }
  • 03-07-2010 11:24 PM In reply to

    Re: appParams in invite

    I'm not sure if you wanted to know this to implement install source tracking or for some other purpose, but for install tracking it's possible to track invites through the "install callback" in app settings.
  • 03-07-2010 11:27 PM In reply to

    Re: appParams in invite

    ahh, thats interesting. But with the install callback, does it pass additional information so that we can track where the install came from? How will I know that someone installed it from accepting an invite vs clicking on a profile widget link or a link in the app directory?
  • 03-07-2010 11:39 PM In reply to

    Re: appParams in invite

    I just tried making an install callback and discovered that one of the GET args is install_location=appinvites. Probably something similar for other sources, but in any case invites are the only ones where we couldn't pass appParams, so all bases should be covered with this :)
  • 03-08-2010 12:07 AM In reply to

    Re: appParams in invite

    None of the big apps I checked are passing appParams in invites, so I am guessing it must be impossible.
  • 03-08-2010 2:08 AM In reply to

    Re: appParams in invite

    I take that back. I found a working example of passing app params, right in the documentation! http://developerwiki.myspace.com/index.php?title=App_Invites Search for the word "casino" on that page to see the code snippet. I just tested it and passing params like that seems to work fine.
  • 03-08-2010 2:27 PM In reply to

    Re: appParams in invite

     Thanks,

    Joel

  • 03-09-2010 12:37 AM In reply to

    Re: appParams in invite

    Yea, I noticed that too. I think it was just added a couple days ago. My problem is that I'm running through ifpc, and I'm unable to get it to work there. Any word on if ifpc support will be added for this?
  • 03-09-2010 2:35 PM In reply to

    Re: appParams in invite

     Messaging between iframes can be accomplished by the instructions shown here:

     http://wiki.developer.myspace.com/index.php?title=Messaging_from_an_IFrame

    There are some js includes as well as the html file used for relaying the calls that you host. Let me know if this is helpful.

     

    thanks,

    Joel

Page 1 of 1 (11 items)