Android Facebook SDK - Get user events

后端 未结 1 1901
半阙折子戏
半阙折子戏 2021-01-20 03:10

i\'ve being able to login and get the user infos from the api with this code:

Facebook facebook = new Facebook(\"XX\");
    AccessToken token = AccessToken.c         


        
相关标签:
1条回答
  • 2021-01-20 03:27

    I've managed to achieve what i want using a FQL Query with this code:

    String fqlQuery = "SELECT eid, name, pic, creator, start_time FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid='XX' and rsvp_status='attending')";       
        Bundle params = new Bundle();
        params.putString("q", fqlQuery);
        Request request = new Request(session, "/fql", params, HttpMethod.GET, 
                new Request.Callback() {
    
                    @Override
                    public void onCompleted(Response response) {
                        System.out.println("Result: " + response.toString());                       
                    }
                });
        Request.executeBatchAsync(request);
    
    0 讨论(0)
提交回复
热议问题