Hi,
i want to auto post to a user wall from my iphone applications ( without that "publish" "skip" dialog box ). how i can do that ?
Hi,
i want to auto post to a user wall from my iphone applications ( without that "publish" "skip" dialog box ). how i can do that ?
Try this code first. It works well if you want to post the message to the wall of user that actually does the connection with FB.
NSString *message = @"This is the message I want to post"
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
message, @"message",
nil];
[[FBRequest request] call:@"facebook.stream.publish" params:params];
If you want to post a message on the wall of other user you should include "uid" parameter in your params dictionary. Please consult http://developers.facebook.com/docs/reference/rest/stream.publish/.
Shurely, before the code executed the session should be created or resumed