gladiopeace / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 0 forks source link

fields (array) parameter, google friends connect #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an osapi object
2. add a "fields" array to the paramaters
3. crash 'n burn

What is the expected output? What do you see instead?

the content of the fields (if any), instead i get 404 Not Found.

What version of the product are you using? On what operating system?

1.0.1, Windows server 2008, php 5.2.8

Please provide any additional information below.

I made an osapi object using friendsconnect as provider, after that:

$profile_fields = array('aboutMe', 'currentLocation');

$self_request_params = array('userId' => '@me', 'groupId' => @self,
'fields' => $profile_fields));

$batch = $osapi->newBatch();
$batch->add($osapi->people->get($self_request_params), 'self');

When I omit the $profile_fields array, all goes well and I'm presented with
my screen name and avatar. However, when I add the fields array I get the
404 error.

Is this feature not supported by google friends connect? If so, a more
descriptive error message would be in order I guess. If not, is there
another method/workaround I could use to retrieve said data?

Original issue reported on code.google.com by douwe.ou...@gmail.com on 27 Jul 2009 at 1:53

GoogleCodeExporter commented 9 years ago
Same issue for me using latest from SVN.  I'm on Windows Vista, SP1.  

php error_log.log reports: [24-Jul-2009 15:33:26] PHP Notice:  Array to string
conversion in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\osapi\auth\osapiSecurityToken.php on line 51  

Original comment by aarabh...@gmail.com on 28 Jul 2009 at 3:03

GoogleCodeExporter commented 9 years ago
If you use 2-legged OAuth you can supply 'fields' => '@all' but it seems to be 
broken
using the osapiFCAuth authentication method.

Original comment by thebubbl...@gmail.com on 13 Sep 2009 at 8:02

GoogleCodeExporter commented 9 years ago
I found that adding the RPC End Point 
"http://friendconnect.gmodules.com/ps/api/rpc"
to osapiFriendConnectProvider.php fixed this error if people would like to 
confirm?

Original comment by thebubbl...@gmail.com on 13 Sep 2009 at 9:19