私のアプリケーションでは。Facebookのウォールに画像を正常に投稿しました(画像タイプJPEGタイプ)。シミュレーターとデバイスでも正常に動作します。
しかし、問題は、iPhoneから画像をキャプチャするとき、またはカメラでキャプチャされたライブラリから画像を選択するときです。Facebookの壁には投稿されていません。
一方、iPhoneライブラリからjpeg画像(インターネットからダウンロード)を選択した場合。壁に貼ってます。
私の意見では、画像フォーマットの問題があります。案内してください
ありがとう
私のコードはここにあります。
-(IBAction)clickButtonClicked
{
// For link post
NSString *Message = [NSString stringWithFormat:@"Testing Iphone App : \"http://www.google.com\" "];
DataClass *obj=[DataClass getInstance];
UIImage *image=[[UIImage alloc]init ];
image= obj.imgFinalImage;
NSMutableDictionary *params1 = [[NSMutableDictionary alloc]init];
[params1 setObject:image forKey:@"source"];
[params1 setObject:Message forKey:@"message"];
NSString *post=@"/me/photos";
[[appDelegate facebook] requestWithGraphPath:post andParams:params1 andHttpMethod:@"POST" andDelegate:self];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Message!" message:@"Invitation Send Sucessfully" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
}