私の問題を解決しました。問題の原因となった、関連するコードは次のとおりです。私のdialog.attachmentで
- (void)postToWall {
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.userMessagePrompt = @"Enter your message:";
dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Check out this great restaurant!\",\"href\":\"/\",\"caption\":\"%@\",\"description\":\"%@ \r %@, %@ %@\",\"media\":[{\"type\":\"image\",\"src\":\"http://www.muslimgreenpages.ca/images/gethalal/GetHalal_IC_B_03.png\",\"href\":\"http://www.gethalalapp.com/\"}]}",
restaurantObj.name, restaurantObj.address, restaurantObj.city, restaurantObj.provinceState, restaurantObj.phoneNumber];
dialog.actionLinks = @"[{\"text\":\"Download GetHalal!\",\"href\":\"http://www.gethalalapp.com/\"}]";
[dialog show];
_posting = NO;
[_session logout];
}
、私は、hrefのパラメータの値を提供しなかったので、私は単にそれを削除し、すべてが働きました!助けようとしてくれてありがとう、非常にmdominickありがとう。
注意してください。
私は実際にFBConnectを使用してログインしています。それは問題ですか? – syedfa