MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Need Help integrating

Last post 10-18-2009 5:48 AM by NICK. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 08-09-2009 9:46 AM

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Need Help integrating

    So I have been trying for 2 weeks not simply to get the example app with the sdk to work and nothing but errors... no replies or help from MySpace... nothing?

    I have followed the walkthru for setting it up to the letter about 50 times now and everything works perfectly, crosses me over to MySpace to ask for permissions, redirects me back to the app on my server once this has been completed and no matter how I play with the realms or setting always gives me the following error on completion:

    Additional Info:

    AppURL: http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth/

    MSP App Settings:

    MSPExternal URL: http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth/index.php

    MSPCallbackValidation: http --> www.rhum.org.au

    MSPRelyingPartyRealms:  http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid/

    http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth/

    http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth-popup/

     

    Error Message after MSP Validation:

    Fatal error: Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=db5b01c5ed0f51023bb5420703f0a066&oauth_timestamp=1249835665&oauth_consumer_key=098df6fb0b53411f9ec5bc03c60fac39&oauth_token=oo0ovv1FSOqrWUwtnGtXHOLl%2BwQ1HQCIqbTKManOX9byT%2BxCXmzlsYbukJI%2BcPzyNTfcBPGZlh5NCCzUHlyyIWIAH08cqTu5EmIeB2DHFX7MX2ODFKetur9aNnHPkcPi&oauth_signature_method=HMAC-SHA1&oauth_signature=BZSb0fA6TbAWAdz8EZMwDkyV4eE%3D failed:<br/><br/> HTTP error 401 <br/><br/> Response:<br/><br/> HTTP/1.1 401 Unauthorized Cache-Control: private Content-Length: 31 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Server: Microsoft-IIS/6.0 WWW-Authenticate: OAuth realm="http://api.myspace.com/authorization", oauth_problem=signature_invalid Set-Cookie: MSCulture=IP=67.225.212.178&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633854072681853923&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9MzAyJkNpdHk9 in /home/rhum/public_html/RHUM_Connect/msconnect/source/MySpaceID/myspace.php on line 1594

     

    I just dont know what to do now? And... not to sound bitchy but why can't anything MySpace does work out of the box... I already finished the integration points for FBa nd Twitter in 2 weeks with little to no stress or issues and in the same amount of time I can't even get the MySpace solution to log in? It's always so freekin difficult with MySpace... WHY WHY WHY WHY... it's driving me insane!

     If someone can just help me get this working I have no issues with getting the integrating done I just can't move forward from here. I recall a similar issue with MSP Apps... after months of pulling my hair out the actual development was easy!

     

    Filed under:
  • 08-12-2009 9:05 PM In reply to

    Re: Need Help integrating

     Hey,

     I contacted one of the SDK devs and he'll take a look at this thead tomorrow. Many people are using the SDK so this is probably a domain/realm setting issue.

    BTW - if you view source on the error page you probably got it should have spewed the error information in the header.

    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://www.myspace.com/myspacedeveloperplatform
  • 08-14-2009 8:55 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     Thankyou so much... had a look at the error page source and it is just the error output listed above... no html tags just looks like the product of a php echo or something not a html document!

  • 08-19-2009 11:25 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     Can someone help me out? I can't even get this off the ground?

  • 08-27-2009 9:36 PM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     So it has been a couple of weeks now and no one has looked at thisor contacted me about this... I am getting a bit disinterested in MySpace DA, and the MySpace team. I know you guys are busy but WTF, if you say you are going to do something then do it! It's annoying and I look a bit stupid on my end telling people we are expecting advice on geting issues sorted to then be ignored for another fortnight. It's bad customer service and bad business.

     Slap on the wrist MDP

  • 08-27-2009 9:37 PM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     And ps, still cant get this bloody thing to work via your own instructions.

  • 09-02-2009 8:03 PM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     

    Donny, a few weeks ago you said someone would be able to help me with my SDK errors, it has now been a month and I dedicate 2 hours a day to checking the forums and docs and working with the SDK and I still can not get it to work out out the box just with the examples.

    It is really doing my head in, I honestly at this point wish I did'nt have to support MySpace but sadly I do and trying to get this working is almost bringing me to tears and making me feel a bit bloody stupid, can you please get someone to have a look at what is going on with my implementation.

    http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth/

    I have unpacked this directly out of the box and followed the walkthrough provided by MySpace to ensure the correct app settings about a million times and I simply can't get it to work.

    It is making me want to KILL MYSELF with frustration.

    My App ID is 145815

    PLEASE PLEASE PLEASE HELP ME AND ILL HAVE YOU CHILDREN!
  • 09-04-2009 9:55 AM In reply to

    • Artem
    • Not Ranked
    • Joined on 04-22-2008
    • Posts 1

    Re: Need Help integrating

    It looks like part of your error is the following message: oauth_problem=signature_invalid This means that the signature you provide does not match the signature that the server is expecting. Usually such issues have been caused by lack of (or too much) URL Encoding (thought other reasons may exist). First step is to compare the signature value you send to the server and what the server returns back in the error message. For the value you send, you need to find the right place in the SDK to output the signature. For the value the server returns, you need to look at the detailed error message you receive. For example, in the error message I received, the value was: oauth_signature=Xgs%2FW4GCl2EFmC4Q3xcjPnCJNsw%3D
  • 09-04-2009 11:49 AM In reply to

    Re: Need Help integrating

    Hey Nick,

    I've tried to setup my environment just like yours and did the following:

    apache 2.2.11
    php 5.2.11
    Sept 4,2009 - latest version of the sdk from http://code.google.com/p/myspaceid-php-sdk/source/checkout
    http://myspaceid-php-sdk.googlecode.com/svn/trunk/

    I used your apps consumer key/secret in config.MySpace.php (this is the only modification I did)
    define('CONSUMER_KEY', '098df6fb0b53411f9ec5bc03c60fac39');
    define('CONSUMER_SECRET', '***HIDDEN***');
    define('TEMP_STORE_PATH', "tmp/_php_consumer_test"); // make sure this is writable
    I also changed my hosts file to match your domain
    127.0.0.1 www.rhum.org.au
    I then navigated to: http://www.rhum.org.au/myspaceid-php-sdk/samples/myspaceid-openid-oauth/

    used your vanity: http://www.myspace.com/bluryvision
    180782931

    Everything was successful

    As Artem said, the only way you can get the invalid signature error is your client code is encoding the oauth base string incorrectly which in turn created a bad signature and this signature doesn't match the server.

    Please check the following:
    you have the latest of the PHP SDK
    your realm match exactly the path of the sample with a trailing "/"
    see whats in your ms.error.log or ms.log for additional errors
    since your app is in development mode, only you as the developer can use it

  • 09-06-2009 8:21 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     viphak,

    I am still hitting a wall.... shortly with my forehead!

    As Requested:

    you have the latest of the PHP SDK..... YES - deleted all the files and reloaded from a fresh checkout 7/9

    your realm match exactly the path of the sample with a trailing "/" - YES - REALM: http://www.rhum.org.au/RHUM_Connect/msconnect/samples/myspaceid-openid-oauth/

    see whats in your ms.error.log or ms.log for additional errors - No such files on my server?

    define('CONSUMER_KEY', '098df6fb0b53411f9ec5bc03c60fac39'); - Correct value

    define('CONSUMER_SECRET', '***HIDDEN***'); - Correct value

    define('TEMP_STORE_PATH', "tmp/_php_consumer_test"); // make sure this is writable - Yes

     

     

    So if the only way you can get the invalid signature error is your client code is encoding the oauth base string incorrectly which in turn created a bad signature and this signature doesn't match the server. Where do I search or what do I cange to correct this... Having a look thru myspace.php file I can find where the error is being thrown but I dont really know what to do or what to change... I have also approached my provider re this issue who has said the only thing to note is that my server is running PHP as a cgi, not as an Apache modul. I dont know if this would cause any issues?

  • 09-08-2009 3:49 PM In reply to

    Re: Need Help integrating

    Ohhh
    As a CGI, it can mean a huge difference. CGI uses stdin/stdout which means encoding can be different. I will try this and let you know what I find.

    -V
  • 09-15-2009 5:30 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     Oh thank god... I was beginning to suspect MySpace just hates me....

     

    hopefully waiting

  • 09-15-2009 4:34 PM In reply to

    Re: Need Help integrating

    Nick, I need to know more about how your ISP host your pages and have php-cgi setup.

    I did the following and it worked. Everything worked with the "myspaceid-openid-oauth" sample.

    Install Ubuntu 9.04 x86

     

    sudo aptitude install subversion curl php5-cgi php5-curl libcurl3

    a2enmod actions
    a2enmod cgi

    ScriptAlias /php5-cgi /usr/bin/php5-cgi
    <VirtualHost *>
      ...
      <Directory /var/www>
        Action php5-cgi /php5-cgi
        AddHandler php5-cgi .php
        Options +ExecCGI -Includes -Indexes
      </Directory>
      ...
    </VirtualHost>

    cd /var/www
    svn co http://myspaceid-php-sdk.googlecode.com/svn/trunk/

    sudo chmod a+rwx,u+t -R /var/www/


     

    I also noticed that you are not getting the oauth_verifier parameter back where as I am getting it back in my test.
  • 09-16-2009 6:18 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

    Howdy viphak,

    Basically I didn not really understand much of what you replied so I forwarded the entire forum stream to the guy I deal with at my host.

    He replied with the following:

     Nick,

     I appologise, initially I did not realise your account had php5 selected. Php4 runs on your server as a CGI module however your account is set up to use php5. Php5 on this server is run as suphp.There are some differences in the way this version of php is run to increase security... this may be the cause of your encoding errors. Let the MySpace developer you are talking to know as this may the cause of something that can easily be fixex.

    In the mean time please provide the details URL, log in information if necessary for the script you are trying to get working and we will have a look at what is going on from our end and provide some feedback for you to pass onto MySpace if we find anything obvious that may be able to help.

    Let us know how you go

    Barry.

     

    So I appologise, I seem to have unknowingly misled you with the CGI module based on Barrys error.

    I am still waiting on further response from them however perhaps this suphp details may provide some further help.

    Regards,

    Nick

     


  • 09-16-2009 6:26 AM In reply to

    • NICK
    • Top 100 Contributor
    • Joined on 05-04-2008
    • Posts 42

    Re: Need Help integrating

     Also, you can check all my environment info at the following: http://www.rhum.org.au/environment.php

Page 1 of 2 (16 items) 1 2 Next >