1

I'm following Parses instructions for implementing FB login here.

I've followed all the steps up to step 5, but when I get to the part where I add these two lines of code to didFinishLaunchingWithOptions in AppDelegate.m:

[Parse setApplicationId:@"parseAppId" clientKey:@"parseClientKey"];
[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:launchOptions];

I get an error stating:

no known class method for selector initializeFacebookWithApplicationLaunchOptions:

I've imported everything I possibly can in the app delegate:

#import "AppDelegate.h"
#import <Parse/Parse.h>
#import "DefaultSettingsViewController.h"
#import <ParseFacebookUtils/PFFacebookUtils.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import "Branch.h"
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>

What am I missing?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Andrew
  • 3,839
  • 10
  • 29
  • 42
  • Maybe related? http://stackoverflow.com/questions/29727608/pffacebookutils-initializefacebookwithapplicationlaunchoptionslaunchoptions-gi – User Jul 09 '15 at 18:58
  • You've got two imports of `PFFacebookUtils.h`, from different frameworks. Is that correct? – jscs Jul 09 '15 at 19:01
  • @Ixx I tried that solution, didn't work. – Andrew Jul 09 '15 at 21:05
  • @JoshCaswell Yeah, I tried importing both because I wasn't sure which one had the headers needed. I've also tried commenting out one import and using the other, that hasn't worked either. – Andrew Jul 09 '15 at 21:06
  • 1
    Did you add the ParseFacebookUtilsV4.framework to your xcode project? Also, it looks like you're using v4 of the Facebook SDK, so make sure you only use ParseFacebookUtilsV4. – Ming Li Jul 10 '15 at 18:53

0 Answers0