[orkut-developer] How to render the profile on production?
I am a developer at weRead and is currently working on trying to put our application back on profile page. I tried all sort of things that are suggested to do that viz. data pipelining and templates / javascript api for data pipelining / old ways of doing a makeRequest and creating the html dynamically / even i tried putting simple Hello string but NONE of them got the profile back on production (though on sandbox everything is working). Coding: To differentiate between canvas and profile i tried both Content type=html view=profile/Content type=html view=canvas as well as gadgets.views.getCurrentView().getName(). Templates i rendered as - script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:ViewerRequest key=viewer/ os:OwnerRequest key=owner/ /script script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:HttpRequest key=profileData href=http:// orkut.weread.com/profile/view/profile_orkut_json.php?uid=${owner.id} bl=5con_sandbox=opensocialcontainer_type=orkutdwc=trueuser=$ {owner.id}%7C${owner.name.givenName} format=json refreshInterval=1/ /script script type=text/os-template div class=profile-wrapper div class=user-atom if=${profileData.bookCount [0] == '0'} a href=${profileData.userReadsLink}$ {owner.name.givenName} ${owner.name.familyName}/a is sharing a href=${profileData.bookCount[1]}${profileData.bookCount[0]} books/ a and a href=${profileData.reviewCount[1]}$ {profileData.reviewCount[0]} reviews/a. /div . . . Current javascript style - var mode = gadgets.views.getCurrentView().getName(); if (mode == profile){ showProfile(baseUrl, dataResponse); return; } showProfile(baseUrl, dataResponse){ var obj = document.getElementById(profileview); obj.innerHTML = Hello; } But nothing works at least for our app!!! I can see a few apps which has their profile up and running with native profile rendering but not mine. Wanted to know if orkut is having a list of specific apps being allowed to show up their profile or so? OR In what ways i can try and get my app back on the profile? I have been working on it for last 1 week ... so any help will be highly appreciated. Regards, Subbu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: How to render the profile on production?
Hi Subbu, Thanks for getting your profile view working using templates. I expect that by second week of april, we can start showing the profile view in production for apps using os templates. I checked the code in, but it takes time for it to propagate to production. We also need to get you os:NavigateToView before that - stay tuned. Thanks, -apurv On Fri, Mar 27, 2009 at 2:40 PM, subhasis@gmail.com subhasis@gmail.com wrote: I am a developer at weRead and is currently working on trying to put our application back on profile page. I tried all sort of things that are suggested to do that viz. data pipelining and templates / javascript api for data pipelining / old ways of doing a makeRequest and creating the html dynamically / even i tried putting simple Hello string but NONE of them got the profile back on production (though on sandbox everything is working). Coding: To differentiate between canvas and profile i tried both Content type=html view=profile/Content type=html view=canvas as well as gadgets.views.getCurrentView().getName(). Templates i rendered as - script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:ViewerRequest key=viewer/ os:OwnerRequest key=owner/ /script script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:HttpRequest key=profileData href=http:// orkut.weread.com/profile/view/profile_orkut_json.php?uid=${owner.id} bl=5con_sandbox=opensocialcontainer_type=orkutdwc=trueuser=$ {owner.id}%7C${owner.name.givenName} format=json refreshInterval=1/ /script script type=text/os-template div class=profile-wrapper div class=user-atom if=${profileData.bookCount [0] == '0'} a href=${profileData.userReadsLink}$ {owner.name.givenName} ${owner.name.familyName}/a is sharing a href=${profileData.bookCount[1]}${profileData.bookCount[0]} books/ a and a href=${profileData.reviewCount[1]}$ {profileData.reviewCount[0]} reviews/a. /div . . . Current javascript style - var mode = gadgets.views.getCurrentView().getName(); if (mode == profile){ showProfile(baseUrl, dataResponse); return; } showProfile(baseUrl, dataResponse){ var obj = document.getElementById(profileview); obj.innerHTML = Hello; } But nothing works at least for our app!!! I can see a few apps which has their profile up and running with native profile rendering but not mine. Wanted to know if orkut is having a list of specific apps being allowed to show up their profile or so? OR In what ways i can try and get my app back on the profile? I have been working on it for last 1 week ... so any help will be highly appreciated. Regards, Subbu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: How to render the profile on production?
Hi Apurv, Thanks for the quick reply. Isn't there any way to get it to working because i can see a few apps being able to !!! Regards, Subbu On Mar 27, 2:16 pm, Apurv Gupta apurv.gu...@gmail.com wrote: Hi Subbu, Thanks for getting your profile view working using templates. I expect that by second week of april, we can start showing the profile view in production for apps using os templates. I checked the code in, but it takes time for it to propagate to production. We also need to get you os:NavigateToView before that - stay tuned. Thanks, -apurv On Fri, Mar 27, 2009 at 2:40 PM, subhasis@gmail.com subhasis@gmail.com wrote: I am a developer at weRead and is currently working on trying to put our application back on profile page. I tried all sort of things that are suggested to do that viz. data pipelining and templates / javascript api for data pipelining / old ways of doing a makeRequest and creating the html dynamically / even i tried putting simple Hello string but NONE of them got the profile back on production (though on sandbox everything is working). Coding: To differentiate between canvas and profile i tried both Content type=html view=profile/Content type=html view=canvas as well as gadgets.views.getCurrentView().getName(). Templates i rendered as - script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:ViewerRequest key=viewer/ os:OwnerRequest key=owner/ /script script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:HttpRequest key=profileData href=http:// orkut.weread.com/profile/view/profile_orkut_json.php?uid=${owner.id} bl=5con_sandbox=opensocialcontainer_type=orkutdwc=trueuser=$ {owner.id}%7C${owner.name.givenName} format=json refreshInterval=1/ /script script type=text/os-template div class=profile-wrapper div class=user-atom if=${profileData.bookCount [0] == '0'} a href=${profileData.userReadsLink}$ {owner.name.givenName} ${owner.name.familyName}/a is sharing a href=${profileData.bookCount[1]}${profileData.bookCount[0]} books/ a and a href=${profileData.reviewCount[1]}$ {profileData.reviewCount[0]} reviews/a. /div . . . Current javascript style - var mode = gadgets.views.getCurrentView().getName(); if (mode == profile){ showProfile(baseUrl, dataResponse); return; } showProfile(baseUrl, dataResponse){ var obj = document.getElementById(profileview); obj.innerHTML = Hello; } But nothing works at least for our app!!! I can see a few apps which has their profile up and running with native profile rendering but not mine. Wanted to know if orkut is having a list of specific apps being allowed to show up their profile or so? OR In what ways i can try and get my app back on the profile? I have been working on it for last 1 week ... so any help will be highly appreciated. Regards, Subbu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: Templates - CSS/JS
From my tests, you can't use javascript - at all. For CSS, you can just embed it in the template using style tags. On Mar 26, 1:55 pm, Felipe Oliveira ifn...@gmail.com wrote: Hi, I convert my app to use OpenSocial Templates, but on old app, I load external files (js/css), I like how to use this files (load) on Templates? Thanks. Felipe Oliveira. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: Error 401 trying to query Friends - count=5
If you mean the REST/RPC API, try getting a newer version from SVN. At least for the C# version, the API was broken when you added any parameters to the request. On Mar 24, 4:56 pm, Felipe Albacete dark...@gmail.com wrote: Hi Folks, Is There any problem on API when we try to query Friends?? I'm only trying to get all friends from a user like count=5 Thanks a lot []'s Felipe Albacete --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: Templates - CSS/JS
Hi Badaro, I start development a app use old especificantion, whit it I used javascript at my app, but now it dont work in profile view, because this I convert my aplication to use templates, but it has many javascripts in code, and I used jquery and others effects in my app, and now I realized that in templates is diferente to use this. My default question is: How to read an external page and work with her results so dynamic? Is has next code example: script xmlns:os=http://ns.opensocial.org/2008/markup; type=text/os-data os:HttpRequest key=my href=http://myserver.com/myselect/; format=json / /script After load, how to use result in page? Thanks. Felipe Olvieira On Fri, Mar 27, 2009 at 10:56 AM, Badaro bad...@gmail.com wrote: From my tests, you can't use javascript - at all. For CSS, you can just embed it in the template using style tags. On Mar 26, 1:55 pm, Felipe Oliveira ifn...@gmail.com wrote: Hi, I convert my app to use OpenSocial Templates, but on old app, I load external files (js/css), I like how to use this files (load) on Templates? Thanks. Felipe Oliveira. -- Atenciosamente, Felipe Oliveira. Cel.: (11) 8694-4253 / (11) 8027-3315 São Paulo - SP --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Problems with opensocial example
I developed an orkut application that works. I add it to my profile. This application display user's friends. I downloaded the file DisplayFriends.java from opensocial. But, even if I changed c.setProperty(OpenSocialClient.Properties.CONSUMER_SECRET, ***); c.setProperty(OpenSocialClient.Properties.CONSUMER_KEY, orkut.com:**); c.setProperty(OpenSocialClient.Properties.VIEWER_ID,myorkutid); and c.fetchPerson(myorkutid) it doesn't work. It works only if I use the values that are in the original file. My viewer id is the uid that I see when I open my application, isn't it? for example: http://www.orkut.com/Main#Application.aspx?uid=***appId=appid viewer id is * Where do I wrong? Thanks a lot --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: There was a problem submitting your application.
I am having the same problem... i had already verified my app and put the code inside the content tag. But i still have this problem when i try to submit my app does anyone have any ideia? On Mar 26, 1:43 pm, naum sie maus guideork...@gmail.com wrote: get code here -http://www.google.com/gadgets/directory/verify after generating the code put it in your application between content code here /content On 26 mar, 11:47, √ιηαуєη∂яα vinayendra...@gmail.com wrote: Anyone alive in the group On Mar 25, 5:10 pm, √ιηαуєη∂яα vinayendra...@gmail.com wrote: i get following error For existing app, to add a category, you need to associate your google account with this Application. Please claim ownership of your app here and then revisit this page. There was a problem submitting your application. I have verified all my existing apps ... But dont know y am i facing such a prob On Mar 24, 10:05 pm, Apurv Gupta apurv.gu...@gmail.com wrote: It gives you the error details below it. Doesn't it? 2009/3/24 √ιηαуєη∂яα vinayendra...@gmail.com I am getting the above error from past few days .. i have verfied my code and i dont see any error ... Is this prob only for me or is it a prob in orkut??? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Executing a function just the first time user installs it
Hi, I would like a function to be executed just the first time user instals my app. After it this function should not be executed whenever he runs the app. I will use this function to send some user details to be stored on my servers. How can I do this? Alex --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] I failed to run opensocial gadget
hello , I tried many times to run social application such as ?xml version=1.0 encoding=UTF-8 ?Module ModulePrefs title=Standard gadget structure /ModulePrefs Content type=html ![CDATA[ Gadget content and features here ]] / Content/Module I have found four steps to run opensocial application: * A text editor, or the Google Gadget Editor (GGE) * Web hosting, or the built-in hosting in the GGE * An Orkut account * Access to the Orkut sandbox. I failed in second step . how to Hosting OpenSocial Apps ? please if anyone give me details thanks for all --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Activity stream
I developed an orkut application recently and I am facing two problem in Activity stream first one : i m not able to display my appli thumbnail in Updates second one : Let A use the application and B(friend of A) see updates click on the application link inspite of opening Join application page(B still not add the appli). it directly open application in A Profile which results a bag into my application Logic . Please help me urgently , because my application is live and i m not able to take advantage of viral spreading. Thanks in advance --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Help with informations from profile on orkut
Hello, Some one may help me? I need know witch information can I catch from the users´ profiles for my gadget? Can I catch hobbies, gender, where is the user from, age, marital status and profession? And users´ friends, can I know them?´ I didn´t find these informations on the blog. Waiting help, thanks. Soraya Silva novida...@colibri.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Problems with opensocial example
Hi. I try to run the file DysplayFriends.java that I downloaded form google code. I created an application on orkut site that run. I installed it on my profile. I changed c.setProperty (OpenSocialClient.Properties.CONSUMER_SECRET,*); c.setProperty (OpenSocialClient.Properties.CONSUMER_KEY,orkut.com:***); c.setProperty(OpenSocialClient.Properties.VIEWER_ID,**); The file run only with default values. If I run with my values I receive that error: Request failed: org.opensocial.client.OpenSocialRequestException: Entry not found at org.opensocial.client.OpenSocialJsonParser.getEntryObject (OpenSocialJsonParser.java:243) at org.opensocial.client.OpenSocialJsonParser.getEntryObject (OpenSocialJsonParser.java:243) at org.opensocial.client.OpenSocialJsonParser.parseAsPerson (OpenSocialJsonParser.java:120) at org.opensocial.client.OpenSocialResponse.getItemAsPerson (OpenSocialResponse.java:61) at org.opensocial.client.OpenSocialClient.fetchPerson (OpenSocialClient.java:130) at samples.DisplayProfileData.main(DisplayProfileData.java:44) this is line 44 : OpenSocialPerson person = c.fetchPerson(myuid); This is opensocialJsonParser method with error: private static JSONObject getEntryObject(JSONObject root) throws OpenSocialRequestException, JSONException { JSONObject entry = new JSONObject(); if (root.has(data)) { entry = root.getJSONObject(data); } else if (root.has(entry)) { entry = root.getJSONObject(entry); } else { throw new OpenSocialRequestException(Entry not found); //line 243 } return entry; } The VIEWER ID is for example when I view my profile, isn't it? http://www.orkut.com/Main#Profile.aspx?rl=mpuid= Why can't I run that file with my values? Thanks a lot --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] OpenSocial Templates - this working in production?
Hi, I am converting an app to use templates, and so far tested only in the sandbox in this case, the use of templates already in production or available only in the sandbox at the moment? Thanks, Felipe Oliveira. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] images not displaying on sandbox profile view
IMG ALT= BORDER=0 SRC=www.sandbox.orkut.gmodules.com/gadgets/ proxy?refresh=86400amp;container=orkut-sandboxamp;url=http%3A%2F%2F2- www.sandbox.orkut.gmodules.com%2Fgadgets%2Fproxy%3Frefresh%3D86400%26container%3Dorkut-sandbox%26url%3Dhttp%253A%252F%252Fwww.kiva.org%252Fimg%252Fw200%252F271578.jpg%26gadget%3Dhttp%253A%252F%252Fwww.neoportfolio.net%252Fmykivaloans%252Fmykivaloans.xml%26fp%3D-182800334amp;gadget=http%3A%2F%2Fwww.domina.net%2Fmyns%2Fmyans.xmlamp;fp=45508amp;refresh=86400amp;sanitize=1amp;rewriteMime=image/* width=150/a see src it converts to www.sandbox.orkut.gm it should be http://sandbox.orkut.gm. fixt it Thanks! Nibu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: Unable to install approved application
Hi Vijiya, The problem is solved now. Thanks, -Akash On Wed, Mar 25, 2009 at 4:04 PM, Vijaya api.vij...@google.com wrote: I am able to successfully install the app using the url you've provided. Can you please confirm that the problem is still persisting? Thanks, Vijaya --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[orkut-developer] Re: Executing a function just the first time user installs it
Maybe in the user's cache you maintain a boolean variable? Sanjay -- RAD Solutions Private Limited Bhubaneswar, India www.radsolutions.co.in --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---