MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

does Install Callback Url work?

Last post 06-27-2009 5:00 PM by ∞X∞. 40 replies.
Page 1 of 3 (41 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 02-25-2008 12:31 PM

    does Install Callback Url work?

     I tried it but after install app it always goes to canvas surface.

  • 02-25-2008 9:33 PM In reply to

    Re: does Install Callback Url work?

    See I knew they were going to add this! Booyah! haha.

    Naw it was just a lucky guess. My guess is that instead of making you have to do the MakeRequest you will now have the ability to automatically pick up the request on the Canvas page.

    This is the intended functionality, for instance you can use an Iframe on the Canvas page. Therefore I am assuming that there will be OAuth parameters automatically passed to the canvas page and iframe so you can have an application on your web server that picks it up and validates the request.

    Then you can utilize the REST API to make calls and build an app.

    -Joseph

  • 02-25-2008 9:53 PM In reply to

    • Paul
    • Top 75 Contributor
    • Joined on 02-01-2008
    • Posts 51

    Re: does Install Callback Url work?

    Hmmm...the UI wasn't supposed to actually go out for this yet.

    These values are intended as notification events to your 3rd party servers, not redirect urls.  They will be signed requests giving you the user id of the user that has installed/uninstalled the app.

  • 02-26-2008 4:23 AM In reply to

    Re: does Install Callback Url work?

    Paul:
    These values are intended as notification events to your 3rd party servers, not redirect urls.  They will be signed requests giving you the user id of the user that has installed/uninstalled the app.

    Just to confirm:

    • the 'Install Callback Url' will only be invoked once, when a user installs the app
    • the 'Uninstall Callback Url' will only be invoked once, when a user removes the app

    Is this correct?

     

  • 02-27-2008 8:30 AM In reply to

    Re: does Install Callback Url work?

     I'm still confused if it is working now.

  • 02-28-2008 2:09 AM In reply to

    Re: does Install Callback Url work?

     Any update on when this will be working?....

  • 02-28-2008 3:19 PM In reply to

    • @nkur
    • Top 500 Contributor
    • Joined on 12-20-2007
    • Posts 19

    Re: does Install Callback Url work?

    Hi, This feature has not been released yet. We're working on it and it should be available soon. Thanks for your patience. Ankur
  • 03-05-2008 10:29 AM In reply to

    • eric
    • Not Ranked
    • Joined on 02-06-2008
    • Posts 4

    Re: does Install Callback Url work?

    Hi Just checking to see if the install/uninstall callback is happening now.  Thanks! 

    Filed under:
  • 03-05-2008 10:54 AM In reply to

    • Tom
    • Top 500 Contributor
    • Joined on 02-04-2008
    • Posts 15

    Re: does Install Callback Url work?

    I beleive these are supposed to be pinged when a user installs the app, not the page they are redirected to.

    I set it up but nothing seems to be pinging them.

    I also don't know what parameters they will be passed, so for now am just logging what's sent (or will be sent someday) to figure out how they work.

  • 03-05-2008 11:57 AM In reply to

    • @nkur
    • Top 500 Contributor
    • Joined on 12-20-2007
    • Posts 19

    Re: does Install Callback Url work?

    Hi all,

    I'm happy to report that we're currently testing the uninstall / install callbacks and they should get released some time next week.

    As far as the functionality of this feature: we will ping your install / uninstall callback url when the user install / uninstalls an application. The url will be signed using OAuth and we'll pass an owner_id that corresponds to the id of the user that is performing the install / uninstall action.

     Make sense?

    Filed under: , ,
  • 03-05-2008 12:38 PM In reply to

    Re: does Install Callback Url work?

    @nkur:

    Hi all,

    I'm happy to report that we're currently testing the uninstall / install callbacks and they should get released some time next week.

    As far as the functionality of this feature: we will ping your install / uninstall callback url when the user install / uninstalls an application. The url will be signed using OAuth and we'll pass an owner_id that corresponds to the id of the user that is performing the install / uninstall action.

     Make sense?

     

    Makes sense. Can you tell us if the owner_id is passed in a GET or POST parameter? I'd like to get my script set up to accept the installs/removed in advance.

  • 03-06-2008 3:18 PM In reply to

    • ayn
    • Not Ranked
    • Joined on 02-25-2008
    • Posts 3

    Re: does Install Callback Url work?

    I tested install and uninstall URLs just now and uninstall is working with and oauth request, but I don't see any request coming in for install, I assuming it will be working sometimes soon. It would save us an extra makeRequest call.
  • 03-06-2008 5:15 PM In reply to

    • Zak
    • Not Ranked
    • Joined on 02-07-2008
    • Posts 9

    Re: does Install Callback Url work?

    Install is not yet implemented, I don't see anything on my web server logs when I install my app.  Uninstall is working . 

     

    Here's what you get back from uninstall:  

    [oauth_consumer_key] => http://www.myspace.com/341711442
    [oauth_nonce] => <secret>
    [oauth_signature] => <secret>
    [oauth_signature_method] => HMAC-SHA1
    [oauth_timestamp] => 1204852123
    [oauth_token] =>
    [oauth_version] => 1.0
    [opensocial_owner_id] => 7439663
    [opensocial_viewer_id] => 7439663
     
     
     You can see the variables by having php dump its output into a file:  
     
    <?php



    $ob_file = fopen('callbacks.txt','a');

    ob_start('ob_file_callback');

    //Anything we output now will go to test.txt
    print("Uninstall: ");
    print_r($_REQUEST);
    print("\n");
    ob_end_flush();

    echo "file written to...";

    function ob_file_callback($buffer)
    {
    global $ob_file;
    fwrite($ob_file,$buffer);
    }
    ?> 
     
    All of those variables you see in the file can be accessed with $_REQUEST['varName']...
     
    Once install works, I would use it to setup initial user information, and add to statistics by storing into a database.   
  • 03-08-2008 6:17 PM In reply to

    • @nkur
    • Top 500 Contributor
    • Joined on 12-20-2007
    • Posts 19

    Re: does Install Callback Url work?

     Both uninstall and install should be working now. And both requests pass in the opensocial_owner_id.

    Filed under: , ,
  • 03-09-2008 7:12 PM In reply to

    Re: does Install Callback Url work?

    @nkur:

     Both uninstall and install should be working now. And both requests pass in the opensocial_owner_id.

     

    They were working for awhile, but now Install is not being called. Remove is working. 

Page 1 of 3 (41 items) 1 2 3 Next >