Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook connect with Phonegap iOS

I'm building a Phonegap application for iOS and I'm trying to include the Facebook connect framework.

I followed all the steps twice from https://github.com/phonegap/phonegap-facebook-plugin , but it keeps giving the following errors:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBSBJSON", referenced from:
  objc-class-ref in FacebookConnectPlugin.o
"_SecRandomCopyBytes", referenced from:
  +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
  -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
"_kSecRandomDefault", referenced from:
  +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)
  -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does somebody know what the problem is here?

With kind regards

like image 411
user2362642 Avatar asked Dec 04 '25 18:12

user2362642


1 Answers

You have to add five other frameworks and libraries (AdSupport, Accounts, libsqlite3, Security and Social) to use the Facebook SDK.

see also: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/

like image 183
Dalinaum Avatar answered Dec 06 '25 08:12

Dalinaum