Tutorial details

Facebook Posting | App Code for Sale | Preview

Facebook Posting | iOS Tutorial

How to update your status on facebook from your app

Overview PAGE TOP

Reference: http://www.geekylemon.com/xcode-facebook-posting

In this tutorial i will be showing you how to update your status on facebook from your app

Features:

  • 1 Button

This is a great feature and must have for any app or game the abilty to allow users to update and share features from within your app or general information to there facebook account for there friends to see

ViewController.h PAGE TOP

#import <UIKit/UIKit.h>
#import <Social/Social.h>
#import <Accounts/Accounts.h>

@interface ViewController : UIViewController {
SLComposeViewController *mySLComposerSheet;
}
- (IBAction)PostToFacebook:(id)sender;

@end

ViewController.m PAGE TOP

@implementation ViewController
- (IBAction)PostToFacebook:(id)sender {
mySLComposerSheet = [[SLComposeViewController alloc] init];
mySLComposerSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[mySLComposerSheet setInitialText:@"Place Text Here"];
[self presentViewController:mySLComposerSheet animated:YES completion:nil];
}
@end

Reference PAGE TOP

http://www.geekylemon.com/xcode-facebook-posting

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.