Hi all, I'm new to Open Social so I'm learning through the tutorial from august 2008. This problem occurs at step 5 (http://opensocial- resources.googlecode.com/svn/samples/tutorial/tags/api-0.8/ gifts_5_streams.xml)
The app works, except I don't see the activities in the profiles. I tried to modify the script, to tell me what goes wrong. However, when I try to write the content of 'getErrorMessage' or getErrorCode in the callback function I get 'undefined' or a function, but no usable value. All I can see is that 'HadError' returns true. My question is: Why do I keep getting an error when I try to post to the activity stream? (remember, the code is taken directly from the tutorial) Can anybody help, please ? :-) This is the relevant code: function postActivity(nut, friend) { var title = 'gave ' + globalFriends.getById(friend).getDisplayName() + ' ' + globalGiftList[nut]; var params = {}; params[opensocial.Activity.Field.TITLE] = title; var activity = opensocial.newActivity(params) opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH, callback); } function callback(status) { if (status.hadError()) { alert("Error creating activity."); } else { alert("Activity successfully created."); } } --~--~---------~--~----~------------~-------~--~----~ 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 opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---