Hi there,
Having a problem solving this error code posting an activity with the following template generated code I pasted into my sample app:
var params = {};
params[opensocial.Activity.Field.TITLE_ID] = "maintemplate";
params[opensocial.Activity.Field.TEMPLATE_PARAMS] = {"action":"did something"};
var mediaItemArray = [;
params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItemArray;
var activity = opensocial.newActivity(params);
opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH, opt_callBack);
I get the following error in the callback:
badRequest Field opensocial.Activity.Field.TEMPLATE_PARAMS contains invalid types. Values shuold be strings.
Yes "should" is spelled incorrectly :)
Has anyone figured out how to get past this?