Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Facebook with iOS

I get all these errors and about 18 more when i try to integrate facebook to my application.

Undefined symbols for architecture i386:
"_ACAccountTypeIdentifierFacebook", referenced from:
  +[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
"_ACFacebookAppIdKey", referenced from:
  -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceEveryone", referenced from:
  -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceFriends", referenced from:
  -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceKey", referenced from:
  -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceOnlyMe", referenced from:
  -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookPermissionsKey", referenced from:

Im using the latest facebook instructions on how to add facebook to my page but i am working with iOS 4.3 and above. SO it needs to cater to 4.3. I have set Accounts.framework to optional. Any one knows what these erros mean? Ive also tried adding any other implementation files that are not linked.

The errors are generated everytime i access FBSession or FBConnect etc.

like image 505
CodeGeek123 Avatar asked Oct 10 '12 10:10

CodeGeek123


People also ask

What version of iOS does Facebook need?

Requires iOS 13.4 or later.


1 Answers

For the record: we expect you to use XCode 4.5 for developing with the Facebook SDK 3.1 as described here

Account.framework, Social.framework and AdSupport.framework are all required (as described here) but use the 'optional' flag if you want to build for older iOS versions too.

Good luck.

like image 179
James Pearce Avatar answered Oct 15 '22 18:10

James Pearce