[orkut-developer] Re: show your friends with the application
Hi Wesley, Didn't quite understand what you're trying to do. But if you mean you want to display all the users that are using your app to everyone who has your app installed, I'm not sure that's not possible, because that will be a violation of privacy. What you can do is to display the list of friends of a person who have that app installed (using opensocial.DataRequest.FilterType.HAS_APP). ~Prashant. On Mar 23, 7:21 pm, Wesley Alves Oliveira wrote: > I wanted to create a page within my application, to display all users that > have added the application to your profile, creating such a one-two showing > the photos, link profile, and the name and description, like applications > such as "Happy Harvest" Which shows the list of friends who have 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: show your friends with the application
Please read that line as "I'm not sure that's possible..." On Mar 24, 7:40 pm, "Prashant (Google)" wrote: > Hi Wesley, > > Didn't quite understand what you're trying to do. But if you mean you > want to display all the users that are using your app to everyone who > has your app installed, I'm not sure that's not possible, because that > will be a violation of privacy. What you can do is to display the list > of friends of a person who have that app installed (using > opensocial.DataRequest.FilterType.HAS_APP). > > ~Prashant. > > On Mar 23, 7:21 pm, Wesley Alves Oliveira wrote: > > > > > I wanted to create a page within my application, to display all users that > > have added the application to your profile, creating such a one-two showing > > the photos, link profile, and the name and description, like applications > > such as "Happy Harvest" Which shows the list of friends who have 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.
Re: [orkut-developer] Re: show your friends with the application
That's right, I want to show it to your friends list track, which has the added application, is how I make the call via the code. PHP?, have some example for me to see how it would 2010/3/24 Prashant (Google) > Hi Wesley, > > Didn't quite understand what you're trying to do. But if you mean you > want to display all the users that are using your app to everyone who > has your app installed, I'm not sure that's not possible, because that > will be a violation of privacy. What you can do is to display the list > of friends of a person who have that app installed (using > opensocial.DataRequest.FilterType.HAS_APP). > > ~Prashant. > > On Mar 23, 7:21 pm, Wesley Alves Oliveira wrote: > > I wanted to create a page within my application, to display all users > that > > have added the application to your profile, creating such a one-two > showing > > the photos, link profile, and the name and description, like applications > > such as "Happy Harvest" Which shows the list of friends who have 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. > > -- 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: show your friends with the application
Wesley: Opensocial API will not allow you to list all people which have your app installed. You will able to list just your friends, who have your app installed. Example: var req = opensocial.newDataRequest(); var viewerFriends = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "FRIENDS" }); var opt_params = {}; opt_params[opensocial.DataRequest.PeopleRequestFields.FILTER ] = opensocial.DataRequest.FilterType.HAS_APP; req.add(req.newFetchPeopleRequest(viewerFriends, opt_params), 'viewerFriends'); req.send(onLoadFriends); function onLoadFriends(data){ // handle stuff } If you want to do grab * everyone who´s using * you´ll need to write some serverside code - it can be using php, python, or whatever you like. Would be something like: - During first loading, check if opensocial_owner_id is persisted on your database. If not, save some information there to make sure this person has your app installed; - Load this information from your database and render it; To do that, basically you´ll need to handle some requests, using gadgets.io.makeRequest function. I wrote an example some time ago. It´s not necessarily what you want, but will give you a clue about how you can make it work. See: http://www.opensocial-br.org/simples-exemplo-de-opensocial-com-oauth-usando-templates-e-request-com-json/ Let me know if you have any doubt. Robson Dantas 2010/3/24 Wesley Alves Oliveira > That's right, I want to show it to your friends list track, which has the > added application, is how I make the call via the code. PHP?, have some > example for me to see how it would > > 2010/3/24 Prashant (Google) > > Hi Wesley, >> >> Didn't quite understand what you're trying to do. But if you mean you >> want to display all the users that are using your app to everyone who >> has your app installed, I'm not sure that's not possible, because that >> will be a violation of privacy. What you can do is to display the list >> of friends of a person who have that app installed (using >> opensocial.DataRequest.FilterType.HAS_APP). >> >> ~Prashant. >> >> On Mar 23, 7:21 pm, Wesley Alves Oliveira wrote: >> > I wanted to create a page within my application, to display all users >> that >> > have added the application to your profile, creating such a one-two >> showing >> > the photos, link profile, and the name and description, like >> applications >> > such as "Happy Harvest" Which shows the list of friends who have 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. >> >> > -- > 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. > -- 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.