2012-11-01 114 views

回答

1
NSMutableDictionary *parmaDic = [NSMutableDictionary dictionaryWithCapacity:4]; 
[parmaDic setObject:[NSString stringWithFormat:@"hello world"] forKey:@"message"]; // if you want send message 
[parmaDic setObject:@"http://icon.png" forKey:@"picture"]; // if you want send picture  
[parmaDic setObject:@"Create post" forKey:@"name"];   // if you want send name  
[parmaDic setObject:@"Write description." forKey:@"description"]; // if you want description 

[_facebook requestWithGraphPath:[NSString stringWithFormat:@"/%@/feed",facebook_user_id] 
         andParams:parmaDic 
        andHttpMethod:@"POST" 
        andDelegate:self]; 

我用鑰匙like.message,圖片..等請參閱http://developers.facebook.com/docs/reference/api/post/

相關問題