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
問題は、Parse を使用して投稿することはできphoto or Status
ますが、ご覧のようにリンクを投稿することはできません。
助けてくれてありがとう。