使用 Appcelerator 从 Facebook 获取群组详细信息
我正在使用 Appcelerator 开发 iOS 应用程序。在此应用程序中,我需要从 Facebook 群组获取信息。
直接使用 URL 就可以了。我得到了所有组文档的完整数据集。
https://graph.facebook.com/2389876494501676/docs?access_token=TOKEN HERE
但使用 Appcelerator Facebook 模块只会返回一个空数据集。
Titanium.Facebook.requestWithGraphPath('2389876494501676/docs', {}, 'GET', function(e) {
Ti.API.info(e);
});
怎么了?
I am developing an iOS app using Appcelerator. In this app I need to get information from a Facebook Group.
Using the URL directly works fine. I get a complete data set of all groups docs.
https://graph.facebook.com/2389876494501676/docs?access_token=TOKEN HERE
But using the Appcelerator Facebook module just returns an empty data set.
Titanium.Facebook.requestWithGraphPath('2389876494501676/docs', {}, 'GET', function(e) {
Ti.API.info(e);
});
What is wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有看到你通过你的函数传递令牌。这可能是问题所在
I don't see you passing token via your function. That might be the problem
不,令牌已经由模块处理。
尝试 Ti.API.info(e.result) 你应该能够看到结果。
Nope, the token is handle by the module already.
Try Ti.API.info(e.result) you should be able to see the result.