Open GoogleCodeExporter opened 8 years ago
This is the code snippet that has been used.
public List<Long> getFriendsOfFriendListGroup( long friendListId,
FacebookJaxbRestClient facebookJaxbRestClient )
{
List<Long> friendsUID = null;
FriendsGetResponse response = null;
try
{
facebookJaxbRestClient.friends_getList( friendListId );
System.out.println( "Document returned by friends_getList : "
+ facebookJaxbRestClient.getRawResponse() );
response = (FriendsGetResponse) facebookJaxbRestClient
.getResponsePOJO();
friendsUID = response.getUid();
} catch ( FacebookException exception )
{
exception.printStackTrace();
}
return friendsUID;
}
Original comment by rajesh....@gmail.com
on 28 Jun 2009 at 11:07
Tested on Windows XP
Original comment by rajesh....@gmail.com
on 28 Jun 2009 at 11:14
To fix this issue replace
public T friends_getList( Long friendListId ) throws FacebookException {
if ( null != friendListId && 0L <= friendListId ) {
throw new IllegalArgumentException( "given invalid friendListId " + friendListId );
}
return callMethod( FacebookMethod.FRIENDS_GET, newPair( "flid", friendListId ) );
}
with
public T friends_getList( Long friendListId ) throws FacebookException {
if ( ( null == friendListId ) || ( 0L > friendListId ) ) {
throw new IllegalArgumentException( "given invalid friendListId " + friendListId );
}
return callMethod( FacebookMethod.FRIENDS_GET, newPair( "flid", friendListId ) );
}
in ExtensibleClient<T> class
Original comment by rajesh....@gmail.com
on 5 Jul 2009 at 4:28
This is also occurring in v3.0.1 of the SDK.
-Ron
Original comment by ronemr...@gmail.com
on 5 Nov 2009 at 4:56
This is because facebook no longer supports getting friends list of any other
id except yours. Replaced the ID with your own id. If it works then this issue
should be closed since this is a facebook limitation
Original comment by ganesh.k...@gmail.com
on 12 Sep 2010 at 10:27
Original issue reported on code.google.com by
rajesh....@gmail.com
on 28 Jun 2009 at 11:05