我是ios新手,我想在我的朋友帖子上寫點東西。我是試試這個代碼利用圖
API這是行不通的,請幫我ios在我的朋友的帖子上寫點東西
NSMutableDictionary* params = [NSMutableDictionary dictionary];
[params setObject:@"Some text" forKey:@"user_message_prompt"];
[params setObject:@"another text" forKey:@"action_links"];
[params setObject:@"Yet another text" forKey:@"attachment"];
[params setObject:@"SOME FACEBOOK ID" forKey:@"target_id"];
FBRequest *request = [[FBRequest alloc] initWithSession:FBSession.activeSession
graphPath:@"https://graph.facebook.com/100000329153640/feed"
parameters:params
HTTPMethod:@"POST"];
NSLog(@"%@",request);
在這個NSlog--要求線返回此
graphPath: https://graph.facebook.com/100000329153640/feed, HTTPMethod: POST, parameters: {
"action_links" = "another text";
attachment = "Yet another text";
"migration_bundle" = "fbsdk:20131212";
"target_id" = "SOME FACEBOOK ID";
"user_message_prompt" = "Some text";
}>
請給我解決 請您分享寶貴的知識...我在等待 Thankyou