私はthis tutorialを実行していましたが、ユーザの壁に投稿しようとするまではすべてうまくいっています。私はユーザーの情報、名、姓、教育などを取得できます。しかし、私は、次の手順を実行したときに:私は、私はそれを使ってログインさせていただいておりますので、access_tokenはが正しいことを知っている Facebook Graph ApiのiOSでアプリケーションの検証エラーが発生しました
Post id is : {"error":{"message":"Error validating application.","type":"OAuthException"}}
を返されています
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://graph.facebook.com/me/feed"]];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:@"Posted from Swangle for iPhone" forKey:@"message"];
[request setPostValue:@"Swangle for Iphone" forKey:@"name"];
[request setPostValue:@"Coming Soon..." forKey:@"caption"];
[request setPostValue:@"Description" forKey:@"description"];
[request setPostValue:_accessToken forKey:@"access_token"];
[request setDidFinishSelector:@selector(postToWallFinished:)];
[request setDelegate:self];
[request startAsynchronous];
- (void)postToWallFinished:(ASIHTTPRequest *)request
{
// Use when fetching text data
NSString *responseString = [request responseString];
NSLog(@"Response String : %@ and request : %@", responseString, request);
NSMutableDictionary *responseJSON = [responseString JSONValue];
NSString *postId = [responseJSON objectForKey:@"id"];
NSLog(@"Post id is: %@", postId);
UIAlertView *av = [[[UIAlertView alloc] initWithTitle:@"Sucessfully posted to photos & wall!"
message:@"Check out your Facebook to see!"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil] autorelease];
[av show];
}
を。
また、developers.facebookにアプリケーションを作成し、正しいキーを使用してDBにアクセスしています。
誰かに助言してもらえますか、これを理解するために正しい方向に向けることができますか?
ありがとうございます!
屋とき私は最初にログオンしました。私はあなたに「はい」と言った承認を求められました。 –