views:

41

answers:

0

I try to wrote MySpace app.

My OAuth Consumer Key: is

http://www.myspace.com/551804372

and OAuth Consumer Secret is

4d6898d03b24491abc57e98f67508c7e828f9821d84d433b8b541f1865a89fa6

Is used your tutorial:

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

to create APP.

I set app to "External IFrame" and provided proper URL to my server location.

Than I downloaded Your SDK for PHP from here:

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

and put on my server. Went to "config.MySpace.php" and set:

//please register at http://developer.myspace.com for a CONSUMERK_KEY
define('CONSUMER_KEY', 'http://www.myspace.com/551804372');

//please register at http://developer.myspace.com for a CONSUMER_SECRET
define('CONSUMER_SECRET', '4d6898d03b24491abc57e98f67508c7e828f9821d84d433b8b541f1865a89fa6');

// for testing purpose auth tokens & secrets (unit test cases)

define('OAUTH_TOKEN', 'http://www.myspace.com/551804372');

define('OAUTH_SECRET', '4d6898d03b24491abc57e98f67508c7e828f9821d84d433b8b541f1865a89fa6');

define('APP_ID', '551804372');
define('FRIEND_ID', 'FRIEND ID HERE');

Next I set location of my IFrame app to "samples\myspaceid-onsite"

And when I display my app i see this:

Hello, this is an onsite app using the MySpaceID PHP SDK.

Warning: Missing argument 5 for OAuthRequest::__construct(), called in /home/admin/www/test/myspace_platform/source/OAuth/OAuth.php on line 181 and defined in /home/admin/www/test/myspace_platform/source/OAuth/OAuth.php on line 136

Notice: Undefined variable: body in /home/admin/www/test/myspace_platform/source/OAuth/OAuth.php on line 146

Warning: Missing argument 3 for OAuthSignatureMethod_HMAC_SHA1::build_signature(), called in /home/admin/www/test/ms_quizz/index.php on line 146 and defined in /home/admin/www/test/myspace_platform/source/OAuth/OAuth.php on line 69

Notice: Undefined variable: token in /home/admin/www/test/myspace_platform/source/OAuth/OAuth.php on line 78

Base string = GET&http%3A%2F%2Fwww.myspace.com%2F551804372&appid%3D196614%26country%3Dpl%26installState%3D1%26lang%3Dpl%26mc%3DUOC%26oauth_consumer_key%3Dhttp%253A%252F%252Fwww.myspace.com%252F551804372%26oauth_nonce%3D634230244136953331%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1287427613%26oauth_version%3D1.0%26opensocial_owner_id%3D535906599%26opensocial_surface%3Dcanvas%26opensocial_token%3DHxnrLpjr8Rnkp3hdvrnd1yMfNYWXZjkFykQn0MGLDoJcU96cajKOZavsz%25208wSKpOnNSoewaWF31wgudDpp5YHs6aCnyy7t2zzA9xASQitzs%253D%26opensocial_viewer_id%3D535906599%26ownerId%3D535906599%26perm%3D%255B%2522RN%2522%252C%2522PB%2522%252C%2522SN%2522%252C%2522%2522%252C%2522BI%2522%252C%2522FL%2522%255D%26ptoString%3DCOMMENTS%252CBLOG%252CBULLETINS%252CPROFILE%252CSEND_MESSAGE%252CSHARE_APP%252CACTIVITY%252CADD_TO_FRIENDS%252CAPP_MESSAGE%26viewerId%3D535906599

Built Signature = oHZ0R0jnBvsKmoCsugnCmTAj88c=

Passed in Signature = INLtKpyQAcide+bgagMdySmVIR4=

Signatures don't match! Exiting.

So my question is: what is wrong in it?