java– “无法解析facebook Graph API的符号`Request`”错误

概述我将最新的facebookSDK4.0.1包含在AndroidStudio项目中.我想进行GraphAPIreference上列出的基本GraphAPI调用/*maketheAPIcall*ewRequest(session,"/me",null,HttpMethod.GET,newRequest.Callback(){publicvoidonCompleted

我将最新的facebook SDK 4.0.1包含在Android Studio项目中.我想进行Graph API reference上列出的基本Graph API调用

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

但是我无法导入Request类,我收到错误无法解析symbolRequest“.

如何解决这个问题?我是否需要导入其他库来使用Graph API?

谢谢.

解决方法:

Request类已重命名为GraphRequest.

总结

以上是内存溢出为你收集整理的java – “无法解析facebook Graph API的符号`Request`”错误全部内容,希望文章能够帮你解决java – “无法解析facebook Graph API的符号`Request`”错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1116450.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存