Breakpoint 2.1 Error Parse/Facebook iOS SDK

后端 未结 2 1239
广开言路
广开言路 2021-01-28 07:12

Here is the entire delegate, but whenever I run the app I get a breakpoint at [PFFacebookUtils initializeFacebook];:

#import \"AppDelegate.h\"
#impo         


        
2条回答
  •  甜味超标
    2021-01-28 07:37

    You should call initializeFacebook only after setting the appId and clientKey.

    Try this:

    [Parse setApplicationId:@"ycWShHVTsY7Xawt0dupTN1YMWFeyMLlhG7K9R0rZ"
                   clientKey:@"8AmzExUoqvmppa5k3eaS37RBNB6c1StmlysvvjBr"];
    
    [PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
    
    [PFFacebookUtils initializeFacebook];
    

    Instead of this:

    [PFFacebookUtils initializeFacebook];
    
    {[Parse setApplicationId:@"ycWShHVTsY7Xawt0dupTN1YMWFeyMLlhG7K9R0rZ"
                   clientKey:@"8AmzExUoqvmppa5k3eaS37RBNB6c1StmlysvvjBr"];}
    
    {[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];}
    

    btw, I'd recommend creating another app in parse, now that you posted here these two keys are public and anyone can mess up with your data.

提交回复
热议问题