Activity is failing

0 views
Skip to first unread message

Rajasekhar

unread,
Nov 20, 2008, 3:22:55 AM11/20/08
to Orkut Developer Forum
HI everybody

When i am usig this code for sending streams .I am using 0.7
version .I am unable to post activity to my friends.


function postActivity(feed,type)
{
var data = {};
data[opensocial.Activity.Field.TITLE] = "Title";
data[opensocial.Activity.Field.BODY] = "Created Flinkit";
var activity = opensocial.newActivity(data);
opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, callback
);
}
function callback(response)
{
console.log(response);
}


i am getting error like
----------------------------------------------------------------
a is undefined
t_li(undefined, true, undefined, undefined)common042.js (line 216)
t_mi("{"title":"Title","body":"Created Flinkit","mediaItems":[]}")
common042.js (line 215)
S(Object s=create_activity f=sunitha@#$ veernapu c=0)rpc.js?c...
226604914 (line 155)
b()()rpc.js?c...226604914 (line 121)
[Break on this error] function t_li(a,b,c,d){t_e.gadgets.rpc
[t...t_ai);t_Q("openGadgetReportFloat",t_ci);


-----------------------------------------------------------------


any bidy help me very urgent


Vijaya

unread,
Nov 20, 2008, 5:18:58 PM11/20/08
to Orkut Developer Forum
I just tried executing your snippet on the dev app in orkut
(http://www.orkut.com/Main#AppInfo.aspx?appId=291092957065)
and it seems to work.
Can you tell me which browser you're using and whether the container
is orkut?

RAJA SEKHAR

unread,
Nov 20, 2008, 11:21:01 PM11/20/08
to opensoci...@googlegroups.com

hi i am using orkut container.When i use this code i am getting a is undefined .do u know the reason when that error will come and what causes that error .
--
Sekhar
Reply all
Reply to author
Forward
0 new messages