I know its not a different question. But I tried to look every link available. But didn't find answer to my question. Here is my code:
private void getFriends(){
String fqlQuery = "SELECT uid,name,pic_square FROM user WHERE uid IN " +
"(SELECT uid2 FROM friend WHERE uid1 = me())";
Bundle params = new Bundle();
params.putString("q", fqlQuery);
Session session = Session.getActiveSession();
Request request = new Request(session,
"/fql",
params,
HttpMethod.GET,
new Request.Callback(){
public void onCompleted(Response response) {
Log.i("result", "Result: " + response.toString());
}
Json respnse is:
06-29 12:20:15.542: I/result(392): Result: {Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 104, errorType: OAuthException, errorMessage: An access token is required to request this resource.}, isFromCache:false}