-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
I've installed http://opensocial-php-client.googlecode.com/files/opensocial-php-client-1.0.1.zip and was able to use http://pokersource.info/opensocial-php-client/examples/listFriends.php?test=partuza successfully out of the box. I tried to replace the consumer key and the consumer secret with the ones that show at http://partuza.opensocial.dachary.org/profile/edit#oauth as follows in the __init__.py file $osapi = new osapi($provider, osapiOAuth3Legged::performOAuthLogin('d2eaf3fb-d7f2-cecf-9ce5-cfebeeebffc7', 'a0542a03a2ce8c3cb2032e724b0ecf75', new osapiFileStorage('/tmp/osapi'), $provider, $localUserId)); but got Fatal error: Uncaught exception 'osapiException' with message 'Error requesting oauth access token, code 401, message: <html><body><h1>401 - - Unexpected token type (request) or unknown token</h1></body></html>' in /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php:118 Stack trace: #0 /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php(83): osapiOAuth3Legged->upgradeRequestToken('c0eec0f0-f8cc-c...', '01784ca90bdec8e...') #1 /var/www/opensocial-php-client/examples/__init__.php(57): osapiOAuth3Legged::performOAuthLogin('d2eaf3fb-d7f2-c...', 'a0542a03a2ce8c3...', Object(osapiFileStorage), Object(osapiPartuzaProvider), 'c5abdb7ae4b8a71...') #2 /var/www/opensocial-php-client/examples/listFriends.php(18): require_once('/var/www/openso...') #3 {main} thrown in /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php on line 118 I then tried to install an application ( simple Hello World ), went to the edit application page and tried the consumer key / secret I found there. $osapi = new osapi($provider, osapiOAuth3Legged::performOAuthLogin('fadce8f8-e6da-cbf1-b6ee-ffdffcd3ecff', '03b\ 91c788ebb3146f05d1d5680adfab3', new osapiFileStorage('/tmp/osapi'), $provider, $localUserId)); but got : Fatal error: Uncaught exception 'osapiException' with message 'Error requesting oauth access token, code 401, message: <html><body><h1>401 - - Unexpected token type (request) or unknown token</h1></body></html>' in /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php:118 Stack trace: #0 /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php(83): osapiOAuth3Legged->upgradeRequestToken('c0eec0f0-f8cc-c...', '01784ca90bdec8e...') #1 /var/www/opensocial-php-client/examples/__init__.php(60): osapiOAuth3Legged::performOAuthLogin('fadce8f8-e6da-c...', '03b91c788ebb314...', Object(osapiFileStorage), Object(osapiPartuzaProvider), 'c5abdb7ae4b8a71...') #2 /var/www/opensocial-php-client/examples/listFriends.php(18): require_once('/var/www/openso...') #3 {main} thrown in /var/www/opensocial-php-client/osapi/auth/osapiOAuth3Legged.php on line 118 again. I think I'm officially lost ;-) Thanks in advance for any hint. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpNMI4ACgkQ8dLMyEl6F21a3wCfaWGGlF6EPicXLVICsQ6yUUIB YfEAoLRk35oB8g/TheE7A39XS9L/TAY2 =DkEn -----END PGP SIGNATURE-----