Try using the latest PHP SDK located here.
http://code.google.com/p/opensocial-php-client/source/checkout
There are plenty of examples for all endpoints and this utilizes the newest v0.9 REST endpoints. I reccomend downloading the latest revision from svn as the zip file currenlty contains a bug with activities which I fixed yesterday.
Thanks,
Jesse