Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fetch Friends
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leonardo Rafael Morastoni  
View profile  
 More options Nov 25 2010, 6:44 am
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Thu, 25 Nov 2010 03:44:13 -0800 (PST)
Local: Thurs, Nov 25 2010 6:44 am
Subject: Fetch Friends
How can I fecth more friends than 20? I need to compare a opensocial
id with all friends of the viewer.
I'm using java client library and OAuth

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Dantas  
View profile  
 More options Nov 25 2010, 8:00 am
From: Robson Dantas <biu.dan...@gmail.com>
Date: Thu, 25 Nov 2010 11:00:32 -0200
Local: Thurs, Nov 25 2010 8:00 am
Subject: Re: Fetch Friends

Hi Leonardo!

Dont know if you are using 2legged or 3legged OAuth. For 3legged, just add a
parameter called 'count' and then you are done.

Looking on wiki´s library example, to make a call you should do something
like:

// Request the viewer's friends
Request viewerFriends = PeopleService.getFriends();

getFriends method is described here:
http://code.google.com/p/opensocial-java-client/source/browse/trunk/j...

It sets:
request.setModelClass(Person.class);
request.setSelector(selector);
request.setGuid(guid);

So technically it should work like this:

// Request the viewer's friends
Request viewerFriends = PeopleService.getFriends();
viewerFriends.addParameter('count',400); //400 friends

It is also documented on this method description, see:

/**
   * Adds an extended request parameter, e.g. count or startIndex, to be
passed
   * as query parameters in the URL if executed using REST or in the request
   * body if executed via a RPC.
   *
   * @param name  name of the extended parameter to set
   * @param value value of the specified extended parameter
   */
  public void addParameter(String name, String value) {
    addRpcPayloadParameter(name, value);
    addRestQueryStringParameter(name, value);
  }

Let us know if it works.

-Robson Dantas

2010/11/25 Leonardo Rafael Morastoni <leomo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Rafael Morastoni  
View profile  
 More options Nov 25 2010, 8:12 am
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Thu, 25 Nov 2010 11:12:09 -0200
Local: Thurs, Nov 25 2010 8:12 am
Subject: Re: Fetch Friends

Thanks for response Robson!

I'm using 2Legged OAuth, it will work too?

Could please help me in other question? I post it on Orku Developer Group
but I get no response yet.
How can I can send to opensocial id from viewer to my external java app?
Today, I just can see my opensocial id, that I need to conect to opensocial.

Thanks.

2010/11/25 Robson Dantas <biu.dan...@gmail.com>

--
Leonardo Rafael Morastoni
Microsoft Certified Professional
Fone/Phone: +55(47) 8417-3306/+55(47) 8834-8415

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Rafael Morastoni  
View profile  
 More options Nov 27 2010, 10:53 am
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Sat, 27 Nov 2010 07:53:40 -0800 (PST)
Local: Sat, Nov 27 2010 10:53 am
Subject: Re: Fetch Friends
Anybody knows how can I do it?

On Nov 25, 11:12 am, Leonardo Rafael Morastoni <leomo...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Dantas  
View profile  
 More options Nov 27 2010, 11:36 am
From: Robson Dantas <biu.dan...@gmail.com>
Date: Sat, 27 Nov 2010 14:36:19 -0200
Local: Sat, Nov 27 2010 11:36 am
Subject: Re: Fetch Friends

Didnt understand as well what you are trying to do. Do you have a gadget
installed on orkut and then you want to send viewer to your app ?

-Robson Dantas

2010/11/25 Leonardo Rafael Morastoni <leomo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Rafael Morastoni  
View profile  
 More options Nov 27 2010, 1:14 pm
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Sat, 27 Nov 2010 16:14:59 -0200
Local: Sat, Nov 27 2010 1:14 pm
Subject: Re: Fetch Friends

Robson

I can get the opensocial id following this tutorial:
http://wiki.opensocial.org/index.php?title=Social_Application_Tutorial
I just need to create a servlet to capture this data on my app.
Do you know what i need to do to load my app on gadget? I had a URL based
gadget but now this is out of orkut guideline. Changing it to html broke my
gadget.
Thanks.

2010/11/27 Robson Dantas <biu.dan...@gmail.com>

--
Leonardo Rafael Morastoni
Microsoft Certified Professional
Fone/Phone: +55(47) 8417-3306/+55(47) 8834-8415

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Rafael Morastoni  
View profile  
 More options Nov 28 2010, 12:07 pm
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Sun, 28 Nov 2010 15:07:15 -0200
Local: Sun, Nov 28 2010 12:07 pm
Subject: Re: Fetch Friends

someone could help me please?

2010/11/27 Leonardo Rafael Morastoni <leomo...@gmail.com>

--
Leonardo Rafael Morastoni
Microsoft Certified Professional
Fone/Phone: +55(47) 8417-3306/+55(47) 8834-8415

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robson Dantas  
View profile  
 More options Nov 28 2010, 12:29 pm
From: Robson Dantas <biu.dan...@gmail.com>
Date: Sun, 28 Nov 2010 15:29:56 -0200
Local: Sun, Nov 28 2010 12:29 pm
Subject: Re: Fetch Friends

Please, switch to opensocial-br list. Someone can assist you in portuguese,
and still not understanding what you want to do.

http://groups.google.com/group/opensocial-br?pli=1

-Robson Dantas

2010/11/28 Leonardo Rafael Morastoni <leomo...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Rafael Morastoni  
View profile  
 More options Nov 28 2010, 12:36 pm
From: Leonardo Rafael Morastoni <leomo...@gmail.com>
Date: Sun, 28 Nov 2010 15:36:23 -0200
Local: Sun, Nov 28 2010 12:36 pm
Subject: Re: Fetch Friends

Ok, thanks, I don't that br list exists.

2010/11/28 Robson Dantas <biu.dan...@gmail.com>

--
Leonardo Rafael Morastoni
Microsoft Certified Professional
Fone/Phone: +55(47) 8417-3306/+55(47) 8834-8415

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »