Here is the code that I am using in a xml file :-

   function postActivity()
   {
          var title = "Hello";
          var params = {};
          params[opensocial.Activity.Field.TITLE] = title;
          var activity = opensocial.newActivity(params);
          opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, activityCallback);
   }


    function activityCallback(status)
    {

      if (status.hadError())
      {
         alert("Error creating activity.");
      }

    }


This code doesn't show any error but when I run my application it
always alerts "error creating activity". Any ideas what I am doing
wrong.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-...@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en.

Reply via email to