You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestFB
Hi
User.getPicture() returns a very small size version of the user's
profile picture.
-----
User user = facebookClient.fetchObject("me", User.class,
Parameter.with("fields", "id, name,
picture"));
-----
I want to get the full-size profile photo of a user. The below does
not work in code because Facebook is redirecting to another URL to
display the final image. I was thinking more along the lines of
mapping any JSON returned to "Photo" and then calling "getSource()" on
it so I can read it myself.
-----
Photo profilePhoto = facebookClient.fetchObject("me/picture",
Photo.class);
-----
So I wrote an FQL query. Anyone have a better idea?
-----
String query = "SELECT name,pic_big FROM user WHERE uid=12345";
List<User> users = facebookClient.executeQuery(query, User.class);
-----
revetkn
unread,
Sep 2, 2010, 3:22:33 PM9/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestFB
User.getPicture() is being removed in 1.6. The Graph API has changed
and constructing URLs manually (no need for RestFB) is the correct way
to do this going forward. See http://developers.facebook.com/docs/api#pictures
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestFB
Thanks Mark!
For others who may stumble on the question, when you call this URL
directly, facebook redirects to the actual image location.
So I used HttpUrlConnection to "GET" the url, read the URL stream so
the redirect happens and then grabbed the actual image location post-
direct via HttpUrlConnection.getURL()
On Sep 2, 3:22 pm, revetkn <mark.a.al...@gmail.com> wrote:
> User.getPicture() is being removed in 1.6. The Graph API has changed
> and constructing URLs manually (no need for RestFB) is the correct way