Java – “unable to parse the symbol ‘request’ of Facebook graph API” error

I will the latest Facebook SDK 4.0 1 is included in the Android studio project I want to make the basic graph API calls listed on the graph API reference

/* make the API call */
new Request(
    session,"/me",null,HttpMethod.GET,new Request.Callback() {
        public void onCompleted(Response response) {
            /* handle the result */
        }
    }
).executeAsync();

But I can't import the request class. I received an error and couldn't resolve the symbolrequest "

How to solve this problem? Do I need to import other libraries to use the graph API?

thank you.

Solution

The request class has been renamed graphrequest

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>