I have just installed this library (my app was sorta working already, but I want to try this library). I also get:
Notice: Undefined index: BODY in /var/www/myserver//myspace/unofficial/Space.php on line 184
Fatal error: Uncaught exception 'Exception' with message '401 ' in /var/www/myserver/myspace/unofficial/Space.php:184 Stack trace: #0 /var/www/myserver/myspace/unofficial/Space.php(143): Space->_do_request('users/12341234...', Array) #1 /var/www/myserver/myspace/unofficial/Space.php(60): Space->do_request('users/12341234...') #2 /var/www/myserver/myspaceentry.php(102): Space->profile(12341234) #3 {main} thrown in /var/www/myserver/myspace/unofficial/Space.php on line 184
Note the 'BODY' problem. I sussed the message to be:
Could not identify or did not find an approved authentication protocol. Check the targeted host and all necessary parameters.
Why is this happening? Which is the 'targeted host' and what parameters might I need to check? I'm just calling
$hProfile = $mySpace->profile(12341234);
Seems like other people have had spotty success with this, I didn't see a definitive solution in the rest of the thread. I tried user ids for 'me', the app account, and a friend, none of them got past this.