Facebook connect

Anyway, using facebook connection in iPad or iPhone app.

The idea is to log into this app and then see which of my facebook users are also using the app and its features.

+2


a source to share


2 answers


Yes.

A new version:



Old version:

+2


a source


Please follow the steps to integrate with the Facebook SDK for your app from the following link: http://www.raywenderlich.com/77/how-to-post-on-facebook-with-your-iphone-app

Then check the app. If you need to run the same code for iPad as well, and if you want to resize Facebook controls for iPad, just follow the instructions: http://forum.developers.facebook.net/viewtopic.php?id=54307

But take care of a few things: In FBDialog.m 1) for the postDismissCleanup function, do not comment out the line, [self removeObservers]; Otherwise, your application will start crashing.



2) Replace both of these functions

- (void)keyboardWillHide:(NSNotification*)notification {
  //UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
  /*if (UIInterfaceOrientationIsLandscape(orientation)) {
    _webView.frame = CGRectInset(_webView.frame,
      kPadding + kBorderWidth,
      kPadding + kBorderWidth + _titleLabel.frame.size.height);
  }*/

  _showingKeyboard = NO;
}

- (void)keyboardWillShow:(NSNotification*)notification {
  //UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
  /*if (UIInterfaceOrientationIsLandscape(orientation)) {
    _webView.frame = CGRectInset(_webView.frame,
      -(kPadding + kBorderWidth),
      -(kPadding + kBorderWidth) - _titleLabel.frame.size.height);
  }*/

  _showingKeyboard = YES;
}

      

+1


a source







All Articles