I have tried FBConnect for iPhone and am able to create/manage sessions and upload pictures successfully. What I can't sort out is, how to create and edit notes.
The Facebook documentation says that notes.create query takes three arguments:title, content and uid. It seems I am unable to form 开发者_JAVA百科the right request for the required query.
Please help me on this. Thanks in advance.
Did some quick research on FBConnect. There may be more required parameters but to answer your question about generating the right query...
You need to create an NSDictionary to send parameters to Facebook. So in your case you need something like:
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: aTitle, @"title", aContent, @"content", uid, @"uid"];
and then send it off to Facebook with something like:
[[FBRequest requestWithDelegate:self] call:@"facebook.Notes.create" params:params];
精彩评论