[orkut-developer] Re: NOTHING seems to work on orkut

2010-06-30 Thread Dhaval Pancholi
Hey guys no need to get angry, I am sure Orkut dev team would be
working very hard to fix the issue.

Yes Mayank it is a bug owner data is not visible in profile view. But
there is no need to loose users, static html still works in profile
view you can place a nice image of your application in profile view
and redirect them to canvas.  Until the profile-owner issue is been
fixed. At least your application-profile view would not be blank and
we would be informed as soon as new build goes live in production.

-- 
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-or...@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: Is the Orkut Share API really working

2010-06-30 Thread Dhaval Pancholi
Hey Dig Ji stop complaining all over the network now. We gotta find
alternative ways to solve our problems. I think Orkut team would be
working really hard and would come up with a solution very soon.

As far as Johan you are concerned. Yes currently Feed part is down and
it will get fixed soon by the orkut team.

But if you wanna share your content on orkut You can as well Orkut -
promote. Orkut promotion works.  Below is the code to promote your url
to orkut and it includes params which you can configure. complete docs
are here

http://code.google.com/apis/orkut/docs/orkutshareapidoc.html

a target=_blank href=http://promote.orkut.com/preview?
nt=orkut.comamp;tt=I love orkut !amp;du=http://
www.orkut.comamp;cn=I love orkutamp;tn=http://www.radioparadise.net/
images/orkut.jpgimg border=0 alt=post to orkut title=post to
orkut src=http://cdn.castrolcricket.com/images/share/orkut.gif//a

-- 
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-or...@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: Meet our Superstars!

2010-06-29 Thread Dhaval Pancholi
Hey prashant ,
  Thanks for the appreciation. Guys go wild
with the platform would help you in all the ways i can.

-- 
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-or...@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: is Iframe allowed in orkut app?

2010-06-29 Thread Dhaval Pancholi
Yes  Camilo Iframe is allowed but ensure you are calling your own url
in iframe and not any other site.

-- 
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-or...@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: Changing my display pic?

2010-06-29 Thread Dhaval Pancholi
Hey explosive
  try to switch to new version of Orkut. If you
are already on new version just click your profile pic and u should
be able to upload. i tried to change my pic and it worked smoothly.
Hey you can reduce your image size by Picasa or Photoshop. Keep image
size under under 500 kb for faster upload.

-- 
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-or...@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] Is Orkut SandBox Down ??

2010-05-17 Thread Dhaval Pancholi

Hi
   i have been trying to submit my application over here
http://www.sandbox.orkut.com/Main#Developer
   It shows as blank.  Is it an issue from orkut's side or i m doing
something wrong. I just cannot submit my application

Can anyone help me on this plz??

-- 
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-or...@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.



Re: [orkut-developer] Re: opensocial is not defined error

2010-03-27 Thread Dhaval Pancholi
Hi Midhun,


  ?xml version=1.0 encoding=UTF-8?
Module
ModulePrefs title=OS Blood 1.0 /

Require feature=opensocial-0.8/
  Content type=html![CDATA[

This xml is wrong

  Content type=html

   should be replaced by

  Content type=html view=profile for profile view and

 Content type=html view=canvas for canvas view

and   then it is generally a good practise to include Locale in your xml

eg. Locale lang=en/

if you are using template feature in profiles you can include
Require feature=opensocial-templates

For reference i will give u sample code

Module
ModulePrefs title=APP_NAME thumbnail=APP_THUMBNAIL_IMG
screenshot=APP_BIG_IMG description=APP_DESC  author=APP_AUTHOR
author_email=APP_AUTHOR_EMAIL icon=APP_ICON
Locale lang=en/
Require feature=opensocial-0.8/
Require feature=opensocial-data/
Require feature=tabs/
Require feature=opensocial-templates
Param name=process-on-servertrue/Param
/Require
Require feature=dynamic-height/
Require feature=views/

/ModulePrefs
Content type=html view=canvas
![CDATA[
div id=mainpEnter blood group : input type=text id=bloodgp
name=bloodgp//p
pEnter age data: input type=text id=age name=age//p
p input type=button id=confirm name=confirm value=Confirm
onClick=getViwerid()//p/div
]]
  /Content
/Module

-- 
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-or...@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.



Re: [orkut-developer] Re: Malformed security token

2010-03-26 Thread Dhaval Pancholi
Hi Fábio Gama,
*  try these steps  whenever you get Malformed security
token error.*
*
*
*1) Log out of Sandbox.*
*2) Log in Again*
*now get started with your application *
*
*
*
*
-- 
Dhaval Pancholi
91-9220582314

Web Application Developer | ExperienceCommerce.com
India's #1 full-service Digital Agency

Fan us on facebook.com/experience.commerce
Read original insights on experiencecommerce.com/blog

-- 
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-or...@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.



Re: [orkut-developer] Re: Malformed security token

2010-03-26 Thread Dhaval Pancholi
Hi
When u update your xml you may be clearing your cache and trying to
refresh the page to see sometimes cookie-tokens stored in your machine by
orkut to verify your logged in status get destroyed and when u try to make a
call to orkut client library to request some feature there must be some
default login check with the help of the login cookies. Since those login
cookies were been destroyed you get the error Malformed Security Token
Error. As far as i know this may be the case.

Reproducing the error does not help you in development but hey instead of
clearing your cache and refreshing you can try appending bpc=1 in the url
to reload your new xml



-- 
Dhaval Pancholi
91-9220582314

Web Application Developer | ExperienceCommerce.com
India's #1 full-service Digital Agency

Fan us on facebook.com/experience.commerce
Read original insights on experiencecommerce.com/blog

-- 
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-or...@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: Recurring 500 Internal Server Error on sandbox

2010-02-24 Thread Dhaval Pancholi

Ya Prashant m  very happy to help  in whatever way i can. :)

-- 
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-or...@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.



Re: [orkut-developer] Re: Recurring 500 Internal Server Error on sandbox

2010-02-24 Thread Dhaval Pancholi
Yup Prashant Do it ASAP :)
-- 
Dhaval Pancholi
91-9220582314

Web Application Developer | ExperienceCommerce.com
India's #1 full-service Digital Agency

Fan us on facebook.com/experience.commerce
Read original insights on experiencecommerce.com/blog

-- 
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-or...@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: Recurring 500 Internal Server Error on sandbox

2010-02-23 Thread Dhaval Pancholi
Hi Ankitendra,
 I have come through many posts where they take
you step by step how to write an orkut application but there are very
very few posts which  help developers to debug an orkut application.
Following few debugging tips always work for me.

1) IMP. point Check whether your new xml is been loaded. orkut always
takes xml fom cache so whenever you upload your new xml it does'nt
come from your server it comes from orkut cache. So Solution append
bpc=1 in your xml url so that your entire url looks like
http://www.yourdomain.com/abc.xml?bpc=1
To be totally sure that my new xml is been loaded i generally append
version number and have an alert in the first function of my xml which
points me out my mxl version alert(' v-1.1');
alert(' v-1.2'); and etc.

2) Use Firebug-firefox addon to show you your javascript errors.

3) If you get error 500 Internal Server Error. Check your url you
submitted to orkut in a stand alone page. There might be a case your
server may be at fault.

4) Now in profile view if you are calling some json data with url
using profile templates check that url in a stand alone. to see
whether your file outputs proper json formatted string.

5) Many times orkut returns us an object in a callback function now
this is very frustrating thing now how on earth would i know what data
that object contains. Trust me there are many times where you would
want to use the returned object. So following function i use which
gives me all the properties and methods of the object which helps me a
lot.
Pass any object in this function and your would get all the properties
and methods in the alert box.

function popUpProperties(inobj) {
var html=;
for (objprop in inobj) {
html=html+objprop + ' = ' + inobj[objprop] + '\n';
}
alert(html);
}


6) For the last one this will not help you debug but it will
definitely help you not freak out. There are many posts telling i got
your token has been expired.{I posted  the same questions few months
ago :) } So in this case here is what you do. You logout of your
sandbox account and then you log in again and then start working with
your application.
Your authorization token seems to get destroyed when you clear your
cache etc.



As far as Anikendra  you are concerned your xml loads just fine and i
could use your Kiss me application




-- 
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-or...@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: Upload game application

2010-02-23 Thread Dhaval Pancholi
Ramya have you submitted your application to orkut ??? Because unless
you submit your application and orkut approves it you cannot view your
application from orkut domain. Until your app is approved you can use/
tets/debug your application from sandbox.

-- 
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-or...@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.



Re: [orkut-developer] can we use our orkut app in all social networking site.

2010-02-05 Thread Dhaval Pancholi
Nopes,
   Vinoth you can't use your same orkut code in all social
networking websites.  Your code would only only social networks which work
on open social containers eg. your code with some modification you can use
in myspace,etc. But for building your application on facebook you have to go
to developers.facebook.com


-- 
Dhaval Pancholi
91-9220582314

Web Application Developer | ExperienceCommerce.com
India's #1 full-service Digital Agency

Fan us on facebook.com/experience.commerce
Read original insights on experiencecommerce.com/blog

-- 
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-or...@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: Upload game application

2010-01-30 Thread Dhaval Pancholi
Hi Vinoth,Ramya

  I just forgot some functions in the xml
which i gave above. my BAD :)


Here Ramya  your xml i have done all the changes and made it working.
You can ask me any questions if u r in doubt

?xml version=1.0 encoding=UTF-8 ?
Module
ModulePrefs title=RUMMY thumbnail=http://u15334027.onlinehome-
server.com/Rummy/gameAssets/bulkcard.png
screenshot=http://u15334027.onlinehome-server.com/Rummy/gameAssets/
bulkcard.png description=A fantastic rummy online game
author=GOLIVE author_email=sri...@golive.co.in
icon=GAME_FAV_ICON
Locale lang=en/
Require feature=opensocial-0.8/
Require feature=opensocial-data/
Require feature=tabs/
Require feature=opensocial-templates
Param name=process-on-servertrue/Param
/Require
Require feature=dynamic-height/
Require feature=views/
/ModulePrefs


Content type=html view=profile


![CDATA[

script type=text/os-template  xmlns:os=http://ns.opensocial.org/
2009/extensions
 os:NavigateToApp
center style=padding:0; margin:0;img
src=GAME_PREVIEW_IMAGE_URL border=0 height=250  style=overflow:
hidden;//center
/os:NavigateToApp
/script
]]
!--
The above code will render you game preview image in the profile view
of the application
--
/Content

Content type=html view=canvas

![CDATA[
!-- Load the application-specific css --
script type=text/javascript 

 gadgets.util.registerOnLoadHandler(sendRequest);

/* gets owner and viewer info */
function sendRequest()
{
  if(gadgets.window)
  {
gadgets.window.adjustHeight('800px');
  }
document.getElementById
('main').innerHTML='Loading...';
var idspec = opensocial.newIdSpec({'userId' :
'OWNER', 'groupId' : 'FRIENDS'});
var idspecviewer = opensocial.newIdSpec
({'userId' : 'VIEWER', 'groupId' : 'FRIENDS'});

var req = opensocial.newDataRequest();
var owner_params = { };
owner_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.NAME,opensocial.Person.Field.GENDER,opensocial.Person.Field.CURRENT_LOCATION,
opensocial.Person.Field.PROFILE_URL];

var viewer_params={};
viewer_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
[opensocial.Person.Field.NAME,opensocial.Person.Field.PROFILE_URL];

req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER,owner_params),owner);
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER,viewer_params),viewer);

/* get owner friends */
var friends_params = {};
friends_params
[opensocial.DataRequest.PeopleRequestFields.MAX] =1000;
req.add(req.newFetchPeopleRequest
(idspec,friends_params),'friends');
req.add(req.newFetchPeopleRequest
(idspecviewer,friends_params),'friendsviewer');
req.send(getResponse);
/*end owner friends */
}
/*end*/

function getResponse(data)
{
viewer = data.get(viewer).getData();
owner = data.get(owner).getData();
friends = data.get('friends').getData();
friendsviewer = data.get
('friendsviewer').getData();
orkut_owner_pic_url=owner.getField
(opensocial.Person.Field.THUMBNAIL_URL);

/*get viewer and owner of application*/
orkut_profile_owner_id = getOrkutId
(owner);
if(viewer != null)
{ orkut_profile_viewer_id = getOrkutId (viewer); }
/*end*/

/*set canvas view html
over
here*/

document.getElementById('main').innerHTML ='div
style=padding-bottom:15px;/divembed type=application/x-
shockwave-flash src=http://u15334027.onlinehome-server.com/Rummy/
SmartRummyGame.swf width=600 height=500 quality=high
scale=noscale salign=LT wmode=transparent menu=false
allowfullscreen=true allowscriptaccess=true/embed';

/**end canvas
view**/
}//end get response function


function getOrkutId(user)
{
var ownerOrkutUid = '';
var profile_url = '';
if(user == 'undefined' || user == null )
{
profile_url = 
user.getField(opensocial.Person.Field.PROFILE_URL);
 

[orkut-developer] Re: Upload game application

2010-01-30 Thread Dhaval Pancholi
Hi Ramya,
Once you have completed your xml and are ready for
deployment/go live. You have to do a gadget owner ship verification.

https://www.google.com/gadgets/directory/verify

You have to put your application xml url over here you will get  a
gadget owner code which you would have 2 paste in your xml and then
verify it Once your xml is verified. You submit your xml to orkut.
Orkut approves it in 3-5 days and then your application is live.

-- 
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-or...@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: Detect if Orkut App is running for first time

2010-01-29 Thread Dhaval Pancholi
Hi Toton,
 Here you can get code for almost all information we can
pull from orkut.

http://groups.google.com/group/opensocial-orkut/browse_thread/thread/13adc1025262b000/45e4beb838d1f516?hl=en#45e4beb838d1f516

-- 
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-or...@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: Reg: Orkut App

2010-01-28 Thread Dhaval Pancholi
Hi Reddy


Yes we can display the name of the viewer of the application

As per which information you can pull from orkut refer following link
http://code.google.com/apis/orkut/docs/orkutdevguide/orkutdevguide-0.8.html#profiledatatable

check out following discussion where i have given code to extract all
the information
http://groups.google.com/group/opensocial-orkut/browse_thread/thread/13adc1025262b000?hl=en

-- 
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-or...@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.



Re: [orkut-developer] Re: Reg: Orkut App

2010-01-28 Thread Dhaval Pancholi
Yes u need to access the open social api to access the name ,gender,etc
details you must use
Open Social API, and if you wanna store this info or use this info on your
server you will need gadget.io.makerequest

http://groups.google.com/group/opensocial-orkut/browse_thread/thread/62c4ca74412a6c20/6deca3b78055bd61?hl=enq=#6deca3b78055bd61

-- 
Regards,
Dhaval Pancholi | Web Developer,
EC-Digital Media Agency
www.experiencecommerce.com
(Experience Commerce)

-- 
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-or...@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: Orkut Application Login and Logout

2010-01-27 Thread Dhaval Pancholi
Hi Reddy,
No we do not need any seperate login for user. Your
point was right tht it is very tedious for a user to login into your
application once user is logged into orkut.
So next question would be how do we distinguish between different
users.  Simple Orkut passes parameters to our applications eg. users
open social id,users' name pic,profile url etc.  Here you may use
user's open social id to distinguish between two different users
because every person has a unique open social id.

-- 
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-or...@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: app not show in my profile

2010-01-27 Thread Dhaval Pancholi

Hi Mayank,Sergio
   All orkut applications currently work on
open social 0.8. So if you wanna make your application visible in
profile you must user opensocial-0.8

@Sergio the problem in your xml is   Require
feature=opensocial-0.7 /

Replace above with  Require feature=opensocial-0.8/

@mayank You should include above line in your xml to make it work.

-- 
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-or...@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: Friends Using The App

2010-01-27 Thread Dhaval Pancholi


Hi Sergio  below code would get you all friends who have application

in the  request function

var app_friend_params = {};
app_friend_params[opensocial.DataRequest.PeopleRequestFields.FILTER] =
opensocial.DataRequest.FilterType.HAS_APP
  req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({userId :
OWNER, groupId : FRIENDS}), app_friend_params), ownerFriends);

in response function

 var ownerFriends = data.get('ownerFriends').getData();

  ownerFriends.each
  (
function(friend)
{
  friends_array.push(friend.getId());
}
  );
  friends_array_length=friends_array.length;

here in ownerFriends you have all the friends of owner who have added
the application


-- 
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-or...@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: Upload game application

2010-01-27 Thread Dhaval Pancholi
Hi Ramya can you share your application xml so that i can look into
it.
 because

But my application is just showing a blank screen instead of loading
the game. 
just does nothelp to debug the issue .

-- 
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-or...@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: hi :)

2010-01-27 Thread Dhaval Pancholi

Hi vinodh

check the following url  i have given a sample template it should work
fine.

http://groups.google.com/group/opensocial-orkut/browse_thread/thread/756248b127348ba5/b5dca2946cc6c4fd?hl=en#b5dca2946cc6c4fd

Kindly refer  for proper guidelines on making your application

http://code.google.com/apis/orkut/docs/orkutdevguidelines.html

-- 
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-or...@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: hi :)

2010-01-27 Thread Dhaval Pancholi

Hi vinoth,
  You are doing most basic mistake.

Eg

 ModulePrefs title=GALACTICA
 screenshot=C:\orkut\scr_shot.bmp description=SPACE SHIP
 author=VINODH author_email=vino...@gmail.com 


How can orkut get your image from C:\orkut\scr_shot.bmp  ??  You
should have an url tht is accessible by web starting with  http://


Same goes with

os:NavigateToApp
   center style=padding:0; margin:0;img
 src=GAME_PREVIEW_IMAGE_URL border=0 height=250  style=overflow:
 hidden;//center
 /os:NavigateToApp

Here GAME_PREVIEW_IMAGE_URL is your image url which you give to
preview your image.

replace with http:// image url.


Same goes with your embed tag

 document.getElementById('main').innerHTML ='div style=padding-
 bottom:15px;/divembed src=C:\orkut\galactica_GM_D11.5.dcr
width=750
 height=500 type=application/x-director
 AllowScriptAccess=always wmode=transparent pluginspage=http://
www.macromedia.com/shockwave/download//embed';

Replace  C:\orkut\galactica_GM_D11.5.dcr
with some swf file url . or some image

well for first i would recommend you start with basic Hello World

document.getElementById('main').innerHTML ='Hello World'; Once this
works you can proceed further.

-- 
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-or...@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: THUMBNAIL_URL

2010-01-25 Thread Dhaval Pancholi
Hi Toton,
No need 2 get angry. This question is been asked and answered
many times in this forum. I think they should include this in FAQ.

Well 2 get the users all details here is the code.




/* gets owner and viewer info */
function sendRequest()
{
  if(gadgets.window)
  {
gadgets.window.adjustHeight('800px');
  }

document.getElementById('main').innerHTML=Loading 
Seedhi Baat
Messages...;
var idspec = opensocial.newIdSpec({'userId' : 'OWNER', 
'groupId' :
'FRIENDS'});
var idspecviewer = opensocial.newIdSpec({'userId' : 
'VIEWER',
'groupId' : 'FRIENDS'});

var req = opensocial.newDataRequest();
var owner_params = { };
owner_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.NAME,opensocial.Person.Field.GENDER,
opensocial.Person.Field.CURRENT_LOCATION,
opensocial.Person.Field.PROFILE_URL];



var viewer_params={};
viewer_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
[opensocial.Person.Field.NAME,opensocial.Person.Field.PROFILE_URL];

req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER,owner_params),owner);
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER,viewer_params),viewer);

/* get owner friends */
var friends_params = {};

friends_params[opensocial.DataRequest.PeopleRequestFields.MAX]
=1000;
req.add(req.newFetchPeopleRequest
(idspec,friends_params),'friends');
req.add(req.newFetchPeopleRequest
(idspecviewer,friends_params),'friendsviewer');
req.send(getResponse);
/*end owner friends */

}
/*end*/



function getResponse(data)
{
viewer = data.get(viewer).getData();
owner = data.get(owner).getData();
friends = data.get('friends').getData();
friendsviewer = data.get('friendsviewer').getData();


/*set friends html*/
initFriends(friends,owner);
friendsHtml = getFriendsHtml(null);
/*end friends html */

orkut_owner_pic_url=owner.getField
(opensocial.Person.Field.THUMBNAIL_URL);



/*get viewer and owner of application*/
orkut_profile_owner_id = getOrkutId(owner);
orkut_opensocial_user_id = gadgets.util.getUrlParameters()
[gadgetOwner];//to generate user's open social id

orkut_owner_name=owner.getDisplayName();

orkut_profile_owner_id=orkut_profile_owner_id

owner_gender=owner.getField(opensocial.Person.Field.GENDER);

owner_gender=owner_gender.getDisplayValue();

orkut_owner_location=owner.getField
(opensocial.Person.Field.CURRENT_LOCATION);
/*generate users location*/
var Currlocation='';
Currlocation='Country: 
'+orkut_owner_location.getField
(opensocial.Address.Field.COUNTRY);//country
Currlocation=Currlocation+' 
State:
'+orkut_owner_location.getField(opensocial.Address.Field.REGION);//
state
Currlocation=Currlocation+' 
City:'+orkut_owner_location.getField
(opensocial.Address.Field.LOCALITY);//city

orkut_owner_location=Currlocation;
}


I think this will solve many of your doubts.

-- 
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-or...@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: Upload game application

2010-01-25 Thread Dhaval Pancholi
Hi ramya,

I assume you must be having  an swf url.  eg: http://yourserverurl.com/game.swf

Now in orkut to develop application

1) you write an xml file and upload it on your server such that it is
accessible by http://yourserverurl.com/game.xml
2) In this xml you write code to displaly your content in users
profile view as well as application view.
3) Once you have made the xml and uploaded on your server you goto
sandbox.orkut.com --- Add Apps
4) Here you will get an option to enter a url.
5) Enter the url of your server xml and you have your game on orkut.

Since you are a beginner and you just wanna upload game i will give
you the simplest xml.

XML is self explanatory just replace your swf url,name email etc.
where required and then it should work fine.




?xml version=1.0 encoding=UTF-8 ?
Module
ModulePrefs title=YOUR_GAME_TITLE
thumbnail=YOUR_GAME_THUMBNAIL_LOGO_URL
screenshot=YOUR_GAME_PREVIEW_IMAGE_URL description=GAME_DESC
author=AUTHOR_NAME author_email=AUTHOR_EMAIL icon=GAME_FAV_ICON
Locale lang=en/
Require feature=opensocial-0.8/
Require feature=opensocial-data/
Require feature=tabs/
Require feature=opensocial-templates
Param name=process-on-servertrue/Param
/Require
Require feature=dynamic-height/
Require feature=views/
/ModulePrefs



Content type=html view=profile
![CDATA[
script type=text/os-template  xmlns:os=http://ns.opensocial.org/
2009/extensions
 os:NavigateToApp
center style=padding:0; margin:0;img
src=GAME_PREVIEW_IMAGE_URL border=0 height=250  style=overflow:
hidden;//center
/os:NavigateToApp
/script
]]
!--
The above code will render you game preview image in the profile view
of the application
--
/Content



Content type=html view=canvas

![CDATA[
!-- Load the application-specific css --
script type=text/javascript 

/* gets owner and viewer info */
function sendRequest()
{
  if(gadgets.window)
  {
gadgets.window.adjustHeight('800px');
  }

document.getElementById('main').innerHTML='Loading...';
var idspec = opensocial.newIdSpec({'userId' : 'OWNER', 
'groupId' :
'FRIENDS'});
var idspecviewer = opensocial.newIdSpec({'userId' : 
'VIEWER',
'groupId' : 'FRIENDS'});

var req = opensocial.newDataRequest();
var owner_params = { };
owner_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.NAME,opensocial.Person.Field.GENDER,opensocial.Person.Field.CURRENT_LOCATION,
opensocial.Person.Field.PROFILE_URL];

var viewer_params={};
viewer_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
[opensocial.Person.Field.NAME,opensocial.Person.Field.PROFILE_URL];

req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER,owner_params),owner);
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER,viewer_params),viewer);

/* get owner friends */
var friends_params = {};

friends_params[opensocial.DataRequest.PeopleRequestFields.MAX]
=1000;
req.add(req.newFetchPeopleRequest
(idspec,friends_params),'friends');
req.add(req.newFetchPeopleRequest
(idspecviewer,friends_params),'friendsviewer');
req.send(getResponse);
/*end owner friends */
}
/*end*/


function getResponse(data)
{
viewer = data.get(viewer).getData();
owner = data.get(owner).getData();
friends = data.get('friends').getData();
friendsviewer = data.get('friendsviewer').getData();
orkut_owner_pic_url=owner.getField
(opensocial.Person.Field.THUMBNAIL_URL);

/*get viewer and owner of application*/
orkut_profile_owner_id = getOrkutId(owner);
if(viewer != null){ orkut_profile_viewer_id 
= getOrkutId
(viewer); }
/*end*/

/*set canvas view html over
here*/

document.getElementById('main').innerHTML ='div style=padding-
bottom:15px;/divembed src=YOUR_GAME_SWF_URL width=750
height=500 type=application/x-shockwave-flash
AllowScriptAccess=always wmode=transparent pluginspage=http://
www.macromedia.com/go/getflashplayer/embed';

/**end canvas
view**/
}//end get response function


/script

div 

[orkut-developer] Re: How to fetch Genger of friend

2010-01-11 Thread Dhaval Pancholi
Hi Anupam


Use opensocial.Person.Field.GENDER in your request

In Response retrieve it by

owner_gender=owner.getField(opensocial.Person.Field.GENDER);
owner_gender=owner_gender.getDisplayValue();

You got ur gender in owner_gender.

This works perfectly
-- 
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-or...@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: Detect if Orkut App is running for first time

2010-01-10 Thread Dhaval Pancholi
Hi Toton,


I think  you mean you want an event where a unique user has added your
application for the first time. Sorry Buddy I don't think orkut
provides with such an event. But what i generally do for analytic
purposes is i store the userid in my database and perform a db check
every time user visits the application.

 [ so i can post to the owner's friends to add the application.]

I did'nt understand this part

You can only send a public feed to all users friends. There is no
facebook-type Application invite request in facebook.

So just curious how are u trying 2 post to the owner's friends to add
the application.
-- 
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-or...@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: Orkut's sandbox takes me to my profile.

2010-01-10 Thread Dhaval Pancholi
Hi Innerlab


Sandbox account is similar to normal account except that in sandbox
you can add applications with xml url's. When you are redirected to
your home page if you see sandbox or prod.sandbox in your browser url
u are using orkut sandbox there is nothing wrong in this behaviour
-- 
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-or...@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: Orkut Application Problem

2010-01-10 Thread Dhaval Pancholi

Hi Kiran,


   Orkut does not send feed once you have added the application. To
send feed you should initialize the feed pop up in your application.
Feed should always be published when user has done some action in your
application  which he wants to share with his friends. See the orkut
guidelines for publishing feeds
-- 
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-or...@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: Problem to send message to multiple ids

2009-11-02 Thread Dhaval Pancholi


Hi Chandrika,
  Sorry to say but what you are asking for is not
possible currently in orkut. I had the same problem and was looking
around solution for months but eventually i landed here
http://code.google.com/p/opensocial-resources/issues/detail?id=179
Check out this link This link. This is a bug in orkut which is not
been fixed  purposely to prevent spamming. I have posted a comment
there also. Hope it Helps :)

--~--~-~--~~~---~--~~
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: Flash-Javascript-ASP-Javascript-Flash Integration

2009-10-07 Thread Dhaval Pancholi

Hi Javed ,

You have given a really nice application of your project here.

Yes it is possible JS-FLASH to any web language eg: php,jsp,asp  Yes
your logic is completely right.

You can directly call your js function from flash with External
Interface

I have done this in many projects. Cheers you are going right
way ..


--~--~-~--~~~---~--~~
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] Application Rejected because of Broken Link Error

2009-06-01 Thread Dhaval Pancholi

Hi i had given my application xml to orkut for approval but it was
rejected saying it had 404 errors our testing team has detected no
broken links in the application.
IN firebug also i cannot see any 404 errorrs .
My application xml url is 
http://fbapps.postalz.com/meethabomb/orkut/meethabomb.xml

The url send by orkut team is

http://www.sandbox.orkut.gmodules.com/gadgets/proxy?refresh=86400container=orkut-sandboxurl=http://fbapps.postalz.com/meethabomb/orkut/nullgadget=http://fbapps.postalz.com/meethabomb/orkut/meethabomb.xmlfp=45508refresh=86400sanitize=1rewriteMime=image/*

here in the url it says http://fbapps.postalz.com/meethabomb/orkut/null
but i could not find any link pointing to this url. Can u please give
me in detail description to the broken link error.

--~--~-~--~~~---~--~~
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 get Owner friends on Orkut..

2009-05-19 Thread Dhaval Pancholi

hi kalyan babu etc. this code works for me the best


var app_friend_params = {};
app_friend_params[opensocial.DataRequest.PeopleRequestFields.FILTER] =
opensocial.DataRequest.FilterType.HAS_APP
 req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({userId :
OWNER, groupId : FRIENDS}), app_friend_params), ownerFriends);

--~--~-~--~~~---~--~~
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: Problem with os:HttpRequest

2009-04-29 Thread Dhaval Pancholi

Hi Mayank it seems you are accessing your data in improper manner.

try printing ${root.content} first in your xml  and see whether you
are getting the data.

Now if you get all the data

try accessing the individual value eg::

img src=${root.content.songs[0].url}


--~--~-~--~~~---~--~~
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] IS orkut SandBox down Now

2009-04-29 Thread Dhaval Pancholi

I have ported my code compatible with orkut open social 0.8  have been
working for 8 hrs to make my code run now suddenly i  do not get owner
and viewer
I m using following code which was working today till around 5 pm

function sendRequest()
{
var req = opensocial.newDataRequest();
var opt_params = { };
opt_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.PROFILE_URL,opensocial.Person.Field.NAME,opensocial.Person.Field.THUMBNAIL_URL];
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER,opt_params),viewer);
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER,opt_params),owner);
req.send(getResponse);
}
/*end*/
function getResponse(data)
{
viewer = data.get(viewer).getData();
owner = data.get(owner).getData();
}

now in get response owner and viewer is returning null


In fire bug it gave me this error



HTML
HEAD
TITLEMalformed security token
AFinprTNVjtQKJvz0IW7pc7gRvniVdM6MF8ONOQeTCe-
BLncBDqKlQ9y0Wjgw9C3dB1QhpTtifqlfhNyGsDVY943GrJ-
hkN7qg_dFHytWq9ZsrIeZlEovBQToken
 has expired./TITLE
/HEAD
BODY BGCOLOR=#FF TEXT=#00
H1Malformed security token
AFinprTNVjtQKJvz0IW7pc7gRvniVdM6MF8ONOQeTCe-
BLncBDqKlQ9y0Wjgw9C3dB1QhpTtifqlfhNyGsDVY943GrJ-
hkN7qg_dFHytWq9ZsrIeZlEovBQToken
 has expired./H1
H2Error 401/H2
/BODY
/HTML



PLease orkut guys reply fast is your server down or there is something
wrong with the way i am accessing data.

Reply quick we have very tight delivery

--~--~-~--~~~---~--~~
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: Orkut templates - cant get orkut user id in profile view

2009-04-24 Thread Dhaval Pancholi

script type=text/os-data xmlns:os=http://ns.opensocial.org/2008/
markup

 os:OwnerRequest key=owner fields=name,gender,id,profileUrl/

/script

script type=text/os-template  xmlns:os=http://ns.opensocial.org/
2008/markup
br /
 span class=${owner.gender}bOwner name is  $
{owner.name.givenName}/b/spanbr /
   b  Owner id is :: 
${owner.id}/bbr /
   b Owner Profile 
Url is : ${owner.profileUrl}/bbr /
/script



This will give you open social user id

--~--~-~--~~~---~--~~
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: Sample app using OpenSocial Templates

2009-04-24 Thread Dhaval Pancholi

Actually we had made our application earlier it is a popular
application with many users. We want to add our application to
profile. The reason we need the earlier user id is that our db has
stored all users profile url userid's So someone plz help us to get
profile url user id's

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---