I am wondering if it's possible to post something on a user's facebook wall using SLComposeViewController but without showing the share sheet/dialog?
Following is the code I am using:
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result){ if (result == SLComposeViewControllerResultCancelled) { NSLog(@"Cancelled"); } else { NSLog(@"Done"); } [controller dismissViewControllerAnimated:YES completion:Nil]; }; controller.completionHandler =myBlock; [controller setInitialText:eventInfoToFacebook]; [self presentViewController:controller animated:YES completion:Nil]; }
Thanks in advance.
Source: http://facebook.stackoverflow.com/questions/12557589/post-to-facebook-without-dialog-ios-6
dfw 1930 census nike new nfl uniforms nfl uniforms andrew bailey the village dallas fort worth tornado
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.