I have been searching stackoverflow and the internet and did no find a working solution for my intention.
I want to call a method with a string as parameter which is then posted to the facebook wall without showing a dialog. Of course only when a valid session is available.
I tried this:
// post message to facebook pinnwall
- (void)postOnWall:(NSString *)message {
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, @"message",nil];
[[FBRequest request] call:@"facebook.stream.publish" params:params];
}
Can you guys help me ou with a working method?
Thanks and cheers, doonot