MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Problem with authorizing

Last post 10-30-2009 11:51 AM by Harakiro. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-26-2009 11:33 AM

    Problem with authorizing

    Hello,
    I'm trying to create a myspace app using myspace PHP SDK.
    But on /authorize stage i got only 'External domain or auth_callback is not set.'

    I'm doing all according the documentation and i've viewed demo app source.

    // $this->_myspace = MySpace (from PHP SDK)
    $requestToken = $this->_myspace->getRequestToken(); // or request_token (same actions are perfomed)

    // here is a fail. (400 bad request and error i described above)
    $authorizeUrl = $this->_myspace->getAuthorizeURL($requestToken); // // or authorize($token) (same actions are perfomed)

    // then 401 unauthorized goes here
    echo ($accessToken);exit;


    or i tried to replace getAuthorizeUrl by direct link

    $authorizeUrl = 'http://api.myspace.com/authorize?oauth_token='.rawurlencode($requestToken['oauth_token']).'&oauth_callback='.rawurlencode($this->_callback);

    and got the same problem. Does anybody knows how to fix this issue? Any help would be highly appreciated. Thanks.
  • 10-30-2009 11:51 AM In reply to

    Re: Problem with authorizing

    Try using the latest PHP SDK located here.

    http://code.google.com/p/opensocial-php-client/source/checkout

    There are plenty of examples for all endpoints and this utilizes the newest v0.9 REST endpoints. I reccomend downloading the latest revision from svn as the zip file currenlty contains a bug with activities which I fixed yesterday.

     

    Thanks,

    Jesse

Page 1 of 1 (2 items)