Home Cannot create a custom com.facebook.Request.Callback
Reply: 0

Cannot create a custom com.facebook.Request.Callback

user634
1#
user634 Published in April 25, 2018, 8:41 am

I send a Graph API request as follow:

Request request = new Request(session, graphPath, params, HttpMethod.GET, new CustomCallBack());

In which my CustomCallBack implements the com.facebook.Request.Callback:

private class CustomCallBack implements Callback{

    public CustomCallBack(){

    }

    @Override
    public void onCompleted(Response response) {

    }

}

It announced error like

Illegal modifier for the local class CustomCallBack; only abstract or final is permitted

Can anyone explain why?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.416996 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO