我在iOS開發一個新手,所以我覺得沒有頭緒時錯誤這樣,代碼如下:意外「@」在程序
- (void)postToWall {
FBStreamDialog *dialog = [[[FBStreamDialog alloc] init]
autorelease];
dialog.userMessagePrompt = @"Enter your message:";
dialog.attachment = [NSString
stringWithFormat:@"{\"name\":\"Facebook Connect for
iPhone\",\"href\":\"http://developers.facebook.com/
connect.phptab=iphone\",\"caption\":\"Caption\",
\"description\":\"Description\",\"media\":[{\"type\":
\"image\",\"src\":\"http://img40.yfrog.com/img40/
5914/iphoneconnectbtn.jpg\",\"href\":
\"http://developers.facebook.com/connect.php?
tab=iphone/\"}],\"properties\":{\"another link\":
{\"text\":\"Facebook home page\",\"href\":
\"http://www.facebook.com\"}}}"];
[dialog show];
}
我試圖約Facebook上的在線教程學習連接,所以我在代碼中得到這個錯誤和文件包括:
進口「FBSession.h」 進口「FBLoginButton.h」
你認爲它可能是這會導致什麼問題?
如果你提供確切的錯誤信息,行號,並圍繞這些行的代碼這將有助於。 – 2012-03-28 11:08:50