Facebook connect
2 answers
Yes.
A new version:
- Docs: http://developers.facebook.com/docs/guides/mobile/
- Code: no, you write it yourself using the Graph API
Old version:
+2
a source to share
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 to share