ios - can't find FacebookSDK/FacebookSDK.h -


i'm android developer , i'm new xcode , objective-c.

i'm using parse.com in app , i'm trying add ability login face however, 1 of headers of parsefacebookutils framework need header facebooksdk no more included in new facebook sdk.

further investigation showed me need fbsession header couldn't find either.

is there solution this? i'm using newest xcode, parse sdks , facebook sdks.

edit:

[pffacebookutils logininbackgroundwithreadpermissions:@[@"public_profile", @"user_about_me", @"user_friends", @"email"] block:^(pfuser *user, nserror *error) {         nslog(@"im here anyway!");         if (!user) {             nslog(@"uh oh. user cancelled facebook login.");         } else if (user.isnew) {             nslog(@"user signed , logged in through facebook!");         } else {             nslog(@"user logged in through facebook!");         }     }]; 

edit2:

// //  appdelegate.m //  listo // //  created amit baz on 5/12/15. //  copyright (c) 2015 amit baz. rights reserved. //  #import "appdelegate.h" #import <fbsdkcorekit/fbsdkcorekit.h> #import <fbsdkloginkit/fbsdkloginkit.h> #import <parsefacebookutilsv4/pffacebookutils.h> #import <parse/parse.h>  @interface appdelegate ()  @end  @implementation appdelegate   - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     // override point customization after application launch.      [fbsdkloginbutton class];      [parse setapplicationid:@""                   clientkey:@""];      [pffacebookutils initializefacebookwithapplicationlaunchoptions:launchoptions];      [pfanalytics trackappopenedwithlaunchoptions:launchoptions];      return yes; }  - (void)applicationwillresignactive:(uiapplication *)application {     // sent when application move active inactive state. can occur types of temporary interruptions (such incoming phone call or sms message) or when user quits application , begins transition background state.     // use method pause ongoing tasks, disable timers, , throttle down opengl es frame rates. games should use method pause game. }  - (void)applicationdidenterbackground:(uiapplication *)application {     // use method release shared resources, save user data, invalidate timers, , store enough application state information restore application current state in case terminated later.     // if application supports background execution, method called instead of applicationwillterminate: when user quits. }  - (void)applicationwillenterforeground:(uiapplication *)application {     // called part of transition background inactive state; here can undo many of changes made on entering background. }  - (void)applicationdidbecomeactive:(uiapplication *)application {     // restart tasks paused (or not yet started) while application inactive. if application in background, optionally refresh user interface.     [fbsdkappevents activateapp]; }  - (void)applicationwillterminate:(uiapplication *)application {     // called when application terminate. save data if appropriate. see applicationdidenterbackground:. } - (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation {     return [[fbsdkapplicationdelegate sharedinstance] application:application                                                           openurl:url                                                 sourceapplication:sourceapplication                                                        annotation:annotation]; }  @end 

parse supports both v4.x , v3.x of facebook sdk. if you're using v4.x of facebook sdk, instead of importing parsefacebookutils, you'll need to:

#import <parsefacebookutilsv4/pffacebookutils.h> 

see https://www.parse.com/docs/ios/guide#fbusers more info.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -