Welcome Developers!

in

Welcome!

in

'opensocial.ContentRequestParameters.AUTHENTICATION' is null or not an object?

Last post 08-04-2009 9:54 AM by Stretch. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-04-2009 9:54 AM

    'opensocial.ContentRequestParameters.AUTHENTICATION' is null or not an object?

    I have an app containing the following code block, which works fine in the OSTool Test Harness, but when called in the actual app (profile surface), causes the javascript error named in the title of this post:

        var param = {};
        param[opensocial.ContentRequestParameters.AUTHENTICATION]=opensocial.ContentRequestParameters.AuthenticationType.NONE;
        param[opensocial.ContentRequestParameters.METHOD] = opensocial.ContentRequestParameters.MethodType.GET;
        param[opensocial.ContentRequestParameters.CONTENT_TYPE] = opensocial.ContentRequestParameters.ContentType.HTML;
        opensocial.makeRequest(url + '?' + postdata, callback, param);

    I would like to point out that this particular block of code was copied directly from the OpenSocial documentation here on MySpace (with some slight modification to the final line).  My app is configured to run under OS 0.8.

Page 1 of 1 (1 items)