Hi, I am building an app for orkut using gwt. I am stuck at a place where I will have to query for orkut related information like profile name, friends list etc. Open social has javascript api's to get this information, but is there a way I can get the information in Java. When I try using JSNI, the code doesn't compile giving exception.
Code: public static native void getData() /*-{ var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER), 'viewer'); req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS), 'viewerFriends'); req.send(@com.fansrule.widget.client.FansRuleWidget::showData(Lcom/ google/gwt/core/client/JavaScriptObject;)); }-*/; Exception: [ERROR] Unable to load module entry point class com.tamu.csdl.client.MyApplication (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): 'opensocial' is undefined number: -2146823279 description: 'opensocial' is undefined I am missing something(tutorial, document) here. It would be helpful if someone could point me to some document that would be helpful, or suggest me some alternate method in which I can achieve this. Thanks, Krishna --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---