5

Using This code for getting event:-

new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback() {
           public void onCompleted(Response response) {
            /* handle the result */
           System.out.println("Result: " + response.toString());
         }
      }).executeAsync();
   }
});

Permission :---

authButton.setReadPermissions(Arrays.asList("user_location", "user_birthday", "user_likes","user_events","read_stream"));

And it gave me error :----

I/System.out﹕ Result: {Response:  responseCode: 404, graphObject: null, error: {HttpStatus: 404, errorCode: 803, errorType: OAuthException, errorMessage: (#803) Some of the aliases you requested do not exist: {event-id}}, isFromCache:false}
Bee
  • 142
  • 17
Shashank singh
  • 641
  • 3
  • 14

1 Answers1

0

The error message explains it

(#803) Some of the aliases you requested do not exist: {event-id}

new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback() 

There should be an actual event ID or at least a variable that holds the value of an event ID.

phwd
  • 19,975
  • 5
  • 50
  • 78