Skip to content

Instantly share code, notes, and snippets.

@emersonbroga
Created July 16, 2012 17:10
Show Gist options
  • Save emersonbroga/3123819 to your computer and use it in GitHub Desktop.
Save emersonbroga/3123819 to your computer and use it in GitHub Desktop.
Emerson Carvalho.com >> iOS 6: Integração do Twitter e Facebook (snippet 2)
//Cria o ComposeViewController
SLComposeViewController *facebookViewController = [SLComposeViewController composeViewControllerForType: SLServiceTypeFAcebook];
//Cria o Texto inicial
[facebookViewController setInitialText: @"Foto Bacana"];
//Cria a imagem a ser compartilhada
[facebookViewController addImage: [UIImage imageNamed:@"foto.png"]];
[self presentViewController: facebookViewController animated: YES completion: nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment