我正在使用 Parse 移动平台在 facebook 时间轴上发布提要。这就是他们在文档中所说的:Note that if you already have the Facebook SDK installed in your app, our version of the Facebook SDK will happily work alongside it.
看看这里。
The Parse SDK includes the entire Facebook SDK. All the classes are namespaced with PF_ to avoid conflicts with existing libraries. So, for example, the main Facebook object class in our SDK is PF_Facebook.
这个使用Facebook SDK可以完美运行:
- (IBAction)postFacebook:(UIButton *)sender {
self.postParams =
[[NSMutableDictionary alloc] initWithObjectsAndKeys:
@"https://developers.facebook.com/ios", @"link",
@"https://developers.facebook.com/attachment/iossdk_logo.png", @"picture",
@"Facebook SDK for iOS", @"name",
@"Here we go", @"message",
@"Build great social apps and get more installs.", @"caption",
@"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps.", @"description",
nil];
[FBRequestConnection startWithGraphPath:@"me/feed" parameters:self.postParams HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
[self showAlert:@"Link is posted" result:result error:error];
}];
}
但是当我使用 PF_FBRequestConnection 时,它不起作用:
[PF_FBRequestConnection startWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST"
completionHandler:^(PF_FBRequestConnection *connection, id result, NSError *error) {
[self showAlert:@"Link is posted" result:result error:error];
}];
控制台中的错误:
Error: HTTP status code: 403
问题是我可以发布photo or Status
使用 Parse,但不能发布您看到的链接。
我很感激任何帮助。