Facebook – "Cannot query users by their username" solution

I am developing an android app. I was using a HttpURLConnection to get profile pictures of facebook users. The URL looks like this:


But now, since v2.2 doesn’t let me to get profile pictures of users who are not using my facebook app, it throws an error:

{ “error”: {

  "message": "(#803) Cannot query users by their username (username1)",
  "type": "OAuthException",
  "code": 803    } }

I am not interested in using “Facebook SDK for Android”. Let’s say I use a pop-up webview to authorize my facebook app. What url would let me do the same thing? Is there a simple solution like this:


Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.