You can just generate activities to the logged in user, cannot generate to
others profile, since it will be automatically visible to everybody. This is
why your first request if failling.

The second is possibly related to captcha problems when sending, since it´s
randomically generated by Orkut and opensocial-client-library does not
check. Try to debug all information sent by orkut, and if get a
confirmation, follow my implementation on orkut-os-client-php.

Best

Robson Dantas
@robsondantas

On Mon, Apr 18, 2011 at 1:36 PM, Roberto Scattini
<[email protected]>wrote:

> hi all:
>
> does anyone have this functionality working with php opensocial client in
> orkut?
>
> i keep getting the error:
>
> *There was a 403 error with the createActivity request:
> forbidden: Only activities for the viewer can be created or modified*
>
>
> this is a log of the batch execution [consumer key obfuscated, the userId
> without a zero at the beginning doesn't seems to make a difference, tested
> both]
>
> [1303143713] BATCH RPC
> REQUEST:
> Array
> (
>     [0] => osapiRequest Object
>         (
>             [method] => activities.create
>             [params] => Array
>                 (
>                     [userId] => Array
>                         (
>                             [0] => 6064885595942683910
>                         )
>
>                     [groupId] => @self
>                     [activity] => osapiActivity Object
>                         (
>                             [body] => osapi test activity body
>                             [mediaItems] => Array
>                                 (
>                                 )
>
>                             [title] => osapi test activity at 1303143712
>                         )
>
>                     [appId] => @app
>                 )
>
>             [id] => createActivity
>         )
>
> )
>
> BATCH URL:
>
> http://prod.sandbox.orkut.com/social/rpc?multi_post=&func=post_activity&oauth_nonce=314ac0489f6ffa947cdecc10b42374c5&oauth_version=1.0&oauth_timestamp=1303143712&oauth_consumer_key=MY_KEY&xoauth_requestor_id=06064885595942683910&oauth_body_hash=uLwJs1fF6upbJ2L32V1vXfTi0n0%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=%2Frx6f5MK7ltHuS0BWGYkg3AjuCk%3D
>
>
>
>
> if i change the userId to '@me' i get this:
> *There was a 403 error with the createActivity request:
> forbidden: Permission token validation failed*
> *
> *
> *
> *
> *NOTE: *I am firing this createActivity with a javascript function in our
> flash game, that access a special URL in our servers. then the servers do
> the REST call. this works without problem to obtain a user personal data,
> but not to do activities thing.
> *
> *
> *
> *
> any help is appreciated!!!
>
>
> --
> Roberto Scattini
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"orkut Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to