Facebook GetEvents 图形 API
我正在编写一个 Android 应用程序,我需要将添加事件功能集成到其中。我搜索了 graph api 文档以了解如何发布数据,但是当我尝试时,我收到了 FileNotFound eception。我正在将所需数据发布到 URL“https://graph.facebook.com/me/events”。如果有人能给我小代码片段,那将会有很大帮助..提前致谢..
I am writing an android app and i need to integrate the add events functionality into that. i searched the graph api documentation for how to post the data but when i tried that i am getting FileNotFound eception. i am POSTing required data to the URL "https://graph.facebook.com/me/events". It wouldof great help if anyone could give me small code snippet.. Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
代码如下所示:
Bundle params = new Bundle();
params.putString("name", "My event");
params.putString("位置", "某处,测试");
params.putString("start_time", "2011-07-29T10:13:00");
params.putString("end_time", "2010-07-29T10:20:00");
facebook.request("me/events", params, "POST");
我希望这段代码能够帮助你:)
The code looks like the following:
Bundle params = new Bundle();
params.putString("name", "My event");
params.putString("location", "somewhere,test");
params.putString("start_time", "2011-07-29T10:13:00");
params.putString("end_time", "2010-07-29T10:20:00");
facebook.request("me/events", params, "POST");
I hope that this code will help you :)