gpt4 book ai didi

iphone - Facebook 墙贴错误 : OAuthException

转载 作者:行者123 更新时间:2023-12-03 20:51:51 26 4
gpt4 key购买 nike

我成功地将 facebook 登录集成到我的代码中。现在想在墙上发布。

错误如下:

FBRequest didFailWithError:The operation couldn’t be completed. (facebookErrDomain error 10000.) Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0xeaf9870 {error=<CFBasicHash 0xeaf9770 [0x20eb400]>{type = mutable dict, count = 3,
entries =>
2 : <CFString 0xead54f0 [0x20eb400]>{contents = "type"} = <CFString 0xead6470 [0x20eb400]>{contents = "OAuthException"}
3 : <CFString 0xead4610 [0x20eb400]>{contents = "message"} = <CFString 0xead4660 [0x20eb400]>{contents = "(#200) This API call requires a valid app_id."}
6 : <CFString 0xead4180 [0x20eb400]>{contents = "code"} = 200
}
}

//代码

[_facebook requestWithGraphPath:[NSString stringWithFormat:@"/%@/feed",[defaults objectForKey:@"FBUDID"]] 
andParams:variables
andHttpMethod:@"POST"
andDelegate:self];

我已经检查了AppID和 key 。

请帮忙。谢谢

最佳答案

NSMutableDictionary *params = [[[NSMutableDictionary alloc] init] autorelease];
[params setObject:@"status" forKey:@"type"];
[params setObject:@"Write your message here to post" forKey:@"message"];
[_facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

可以使用上面的代码将消息发布到自己(登录的用户)墙上。如有任何疑问请告诉我。

关于iphone - Facebook 墙贴错误 : OAuthException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13024420/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com