Search code examples
iphoneobjective-ciosfacebookxcode4

Unable to launch facebook using iPhone Apps


I am integrating facebook to my iphone application. for that I downloaded FacebookSDK and included it into my project.

I dont know where I went wrong, as I got below error when I lauch facebook through my apps

+[FBSession openActiveSessionWithPermissions:allowLoginUI:completionHandler:]: unrecognized selector sent to class 0x1a680c 2012-08-14 15:13:37.894 RightHand[11822:15803] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[FBSession openActiveSessionWithPermissions:allowLoginUI:completionHandler:]: unrecognized selector sent to class **strong text

Can anyone help me out in solving this?

Thanks in advance.


Solution

  • Note that what framework you add into your project !

    is "FacebookSDK.framework"

    not "FBiOSSDK.framework"