Thank You Erel!
I actually bit the bullet a dove into the Facebook SDK for iOS. Which means I had to dust off my old big nerd ranch for iOS programming (I got fairly far then got busy so had to re-learn everything again, fortunately it came back rather quick). Facebook SDK is a bit intimidating at first, however 3 days later, I have a test objective c app that I can successfully log into and out of Facebook! Glad i did it as now I have a somewhat decent understanding of the basics (and not so intimidated anymore...).
Now on to learning about B4i libraries. Forgive as I've never written a library for the B4x platform at all.
My initial question is, the Facebook SDK requires incorporating the Facebook delegate in the iOS apps delegate didFinishLaunchingWithOptions method. For example:
[FBSDKApplicationDelegatesharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
How can I hook this into a B4i app via a library?
There's also a few other methods that need to be implemented that appear that need to be in the appdelegate.m of the application. So similar to the above question, how would this work?
Next, at some point I would have to pass in a pointer/reference to the window where the Facebook login button will get "automagically" placed. Typically this is done in the view controller .m file, in the viewDidLoad method:
FBSDKLoginButton *loginButton = [[FBSDKLoginButtonalloc] init];
loginButton.center = self.view.center;
[self.view addSubview:loginButton];
NSLog(@"Hi Mike");
loginButton.readPermissions = @[@"public_profile", @"email", @"user_friends"];
[loginButton setDelegate:self];
Where self is obviously the instance of the view controller. How could achieve this?
I think once I get my head wrapped around these two questions, I will be on my way to making a basic Facebook login library.
Thank You very much!
Mike