I used your code for a test and i receive this response from the request: [{"id":"key","error":{"message":"forbidden: user has disabled activity streams","data":{"errorType":"noPermissions"},"code":403}}]
How to solve this? I have conceived permission for the application to post stream messages... On Tue, Aug 31, 2010 at 11:16 AM, Raoni Campos <rat...@gmail.com> wrote: > Hi, > > I'm having the same problem, but my code is a little different. I > don't use a callback function because if i use one my app don't finish > loading. Any info about this problem? Here is my code: > > function postActivity() { > var params = {}; > params[opensocial.Activity.Field.TITLE] = "Test message"; > var activity = opensocial.newActivity(params) > opensocial.requestCreateActivity(activity, > opensocial.CreateActivityPriority.HIGH, function() {}); > } > > Thanks, > Raoni Campos. > > On Mon, Aug 30, 2010 at 2:45 PM, Bruno Oliveira <bru...@google.com> wrote: >> Hello everyone, >> >> Several developers are reporting an issue where the Activities you post >> through the server-to-server API can't be seen by friends. We are aware of >> this issue and our engineers are already working on it! So stay tuned for >> updates. >> >> Also, remember that the problem only happens when you try to post an >> activity through the server-to-server API. If you post from inside a gadget >> (using the OpenSocial JS API), it should work fine. >> >> Just as a reminder, this is how you would do this from inside a gadget: >> >> var params = {}; >> params[opensocial.Activity.Field.TITLE] = "some text here"; >> var activity = opensocial.newActivity(params); >> opensocial.requestCreateActivity(activity, >> opensocial.CreateActivityPriority.HIGH, yourcallback); >> >> >> function yourcallback(data) { >> if (data.hadError()) { >> // alert user that an error occurred >> } >> else { >> // tell user that the request succeeded >> } >> } >> >> -- >> Bruno Oliveira >> Developer Relations >> >> -- >> 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-or...@googlegroups.com. >> To unsubscribe from this group, send email to >> opensocial-orkut+unsubscr...@googlegroups.com. >> 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 opensocial-or...@googlegroups.com. To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.