public static Response executeAndWait(Request request){
  List<Response> responses=executeBatchAndWait(request);
  if (responses == null || responses.size() != 1) {
    throw new FacebookException("invalid state: expected a single response");
  }
  return responses.get(0);
}

public static Response executeAndWait ( Request request ) { List < Response > responses = executeBatchAndWait ( request ) ; if ( responses == null || responses . size ( ) != 1 ) { throw new FacebookException ( "invalid state: expected a single response" ) ; } return responses . get ( 0 ) ; }
executes a single request on the current thread and returns the response . < p / > this should only be used if you have transitioned off the ui thread .
