This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableDictionary * params = [NSMutableDictionary dictionary]; | |
[params setObject:@"彼得潘的粉絲團" forKey:@"name"]; | |
[params setObject:@"http://www.facebook.com/iphone.peterpan" forKey:@"link"]; | |
[params setObject:@"App程式設計入門作者" forKey:@"caption"]; | |
[params setObject:@"如果我會作詞作曲,我就能成為創作歌手。\n" | |
@"我有一絲音感嗎?沒有。\n" | |
@"所以,很可惜,我只能當歌手的朋友。\n\n" | |
@"如果我有打不死的小宇宙,我就能成為桌球國手。\n" | |
@"我有燃燒小宇宙般地練球嗎?沒有。\n" | |
@"所以,很遺憾,我只能打系隊。\n\n" | |
@"如果給我一天一個App的負荷,也澆不熄我對蘋果的熱情。\n" | |
@"一天能夠完成一個App嗎? 可以。\n" | |
@"所以,是的,我是愛瘋一切為蘋果的彼得潘。" forKey:@"description"]; | |
[params setObject:@"http://passionbean.files.wordpress.com/2012/02/screen-shot-2012-02-15-at-e4b88be58d882-51-30.png" forKey:@"picture"]; | |
[params setObject:@"蘋果的好,只有嘗過的人才懂。彼得潘App夢想學園,熱情招生中。" forKey:@"message"]; | |
FacebookTestAppDelegate *delegate = [[UIApplication sharedApplication] delegate]; | |
[facebookObject requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self]; |
結果:
沒有留言:
張貼留言