The problem in the original thread was related to fetching activities,
not creating them. orkut doesn't currently support fetching activities
and will return an "unauthorized" error. Creating activities is
supported, however.

Are you seeing this error in the orkut sandbox or in your apps running
on www.orkut.com? Your snippet works perfectly for me in the
CodeRunner development gadget. Please provide more details about your
application (URL, etc.), the contents of pTitle and pBody, etc. and
I'll try to help you further.

http://opensocial-resources.googlecode.com/svn/samples/coderunner/trunk/index.html

Marc: what is your issue's number?

- Jason

On Jun 18, 1:31 am, humbroll <[EMAIL PROTECTED]> wrote:
> This problem issued below thread. but, not resolved 
> yet.http://groups.google.com/group/opensocial-orkut/browse_thread/thread/...
>
>         var params = {};
>         params[opensocial.Activity.Field.TITLE] = pTitle;
>         params[opensocial.Activity.Field.BODY] = pBody;
>         var activity = opensocial.newActivity(params);
>         opensocial.requestCreateActivity(activity,
> opensocial.CreateActivityPriority.HIGH, function(res){
>                 if(res.hadError()){
>                         alert('error code : ' + res.getErrorMessage());
>                 }else{
>                         console.log("activity create success!");
>                 }
>         });
>
> response include error code like this.
>
> {"originalDataRequest_":{"type":"CREATE_ACTIVITY","parameter":
> {"activity":{"stream":{},"title":"testtitle","body":"test
> body","mediaitems":[]}}},"data_":null,"errorCode_":"unauthorized"}
>
> plz help me~!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
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