Facebook。停止接收回复

发布于 2024-10-31 18:16:04 字数 469 浏览 3 评论 0原文

我有这样的问题。我有一个类,在其中我调用 facebook Graph API

[_facebook requestWithMethodName:@"fql.query"
                       andParams:params
                   andHttpMethod:@"POST"
                     andDelegate:self];

和两种接收响应的委托方法:

- (void)request:(FBRequest *)request didLoad:(id)result
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error

我需要这样做,以禁用从 facebook 接收响应。我怎样才能用程序的方式做到这一点。谢谢!

I have such a problem. I have class, in which I make a call to facebook Graph API

[_facebook requestWithMethodName:@"fql.query"
                       andParams:params
                   andHttpMethod:@"POST"
                     andDelegate:self];

and two methods of delegate, that receive responces:

- (void)request:(FBRequest *)request didLoad:(id)result
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error

I need to make that way, to disable receive responces from facebook. How can I make it in a program way. Thanx!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

心的位置 2024-11-07 18:16:04

如果这是您尝试使用图形 API 的代码,

[_facebook requestWithMethodName:@"fql.query"  
                   andParams:params  
               andHttpMethod:@"POST"  
                 andDelegate:self];    

这不是图形 API。

对于图形 Api:

[facebook requestWithGraphPath:"ANY GRAPH METHOD HERE"  
                 andParams:"DIFFERENT PARAMETERS YOU WANT TO PASS FOR THAT API"   
                 andHttpMethod:@"POST"  
                   andDelegate:self];

对于图形 API,请在此处检查:http://developers.facebook.com/docs/reference/api/
并且所有功能的API方法都不同。

If this is the code which you are trying for Graph API

[_facebook requestWithMethodName:@"fql.query"  
                   andParams:params  
               andHttpMethod:@"POST"  
                 andDelegate:self];    

This is not a graph API..

For graph Api:

[facebook requestWithGraphPath:"ANY GRAPH METHOD HERE"  
                 andParams:"DIFFERENT PARAMETERS YOU WANT TO PASS FOR THAT API"   
                 andHttpMethod:@"POST"  
                   andDelegate:self];

For Graph API's Check here: http://developers.facebook.com/docs/reference/api/
and the API method is different for all the functions.

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