使用 Appcelerator 从 Facebook 获取群组详细信息

发布于 2024-12-20 03:25:58 字数 404 浏览 3 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

流云如水 2024-12-27 03:25:58

我没有看到你通过你的函数传递令牌。这可能是问题所在

I don't see you passing token via your function. That might be the problem

哽咽笑 2024-12-27 03:25:58

不,令牌已经由模块处理。

尝试 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文