title: GET Request parameters using Volley
body: <p>I'm making an Android App that integrates with the Facebook API and uses a REST API, so I'm using Volley. However, I'm trying to issue a GET request for a JSON Array, and have to include the Facebook Authorization token in order to access the server. Most of the questions I've seen on this are relatively old, and it seems like Volley now provides support to pass in request params (from the volley github page):</p>
  
  <pre><code> /**
   * Creates a new request.
   * @param method the HTTP method to use
   * @param url URL to fetch the JSON from
   * @param jsonRequest A {@link JSONArray} to post with the request. Null is allowed and
   *   indicates no parameters will be posted along with request.
   * @param listener Listener to receive the JSON response
   * @param errorListener Error listener, or null to ignore errors.
   */
  public JsonArrayRequest(int method, String url, JSONArray jsonRequest,
                          Listener&lt;JSONArray&gt; listener, ErrorListener errorListener) {
      super(method, url, (jsonRequest == null) ? null : jsonRequest.toString(), listener,
              errorListener);
  }
  </code></pre>
  
  <p>But when I make and issue a JsonArrayRequest, I get a com.android.volley.AuthFailureError. Here is my code, does anyone know what I'm doing wrong?</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      System.out.println("Yo im here");
      JSONObject requestParams = new JSONObject();
      JSONArray paramArray = new JSONArray();
      try {
          requestParams.put("Authorization", "JWT (Facebook auth token)");
          paramArray.put(requestParams);
      } catch (JSONException e) {
          e.printStackTrace();
      }
  
      System.out.println(paramArray.toString());
  
      RequestQueue queue = Volley.newRequestQueue(this);
  
      JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET,
              GET_MAP_MICS,
              paramArray,
              new Response.Listener&lt;JSONArray&gt;() {
                  @Override
                  public void onResponse(JSONArray micArray) {
                      try {
                          for (int i = 0; i &lt; micArray.length(); i++) {
                              JSONObject jsonobject = micArray.getJSONObject(i);
                              int micId = jsonobject.getInt("micId");
                              String status = jsonobject.getString("status");
                              System.out.println("Good so far!");
                              double venLat = jsonobject.getDouble("venueLat");
                              double venLong = jsonobject.getDouble("venueLat");
                              System.out.println("got here, check it: " + venLat);
                          }
                      }catch (JSONException e) {
                              e.printStackTrace();
                      }
                  }
              }, new Response.ErrorListener() {
          @Override
          public void onErrorResponse(VolleyError e) {
              System.out.println(e);
          }
      });
  </code></pre>