0

I've been following this guide on integrating Facebook into my app. Everything is going well except for when I add in the Facebook SDK to my project.

I have added in all the code to enable SSO, however when I build and run my project I get loads of errors caused by the Facebook SDK:

enter image description here

I think it may be due to the sdk being out of date but I got it from the git page so I would have thought it should be compatible with iOS 5.

Maybe I need to carry out some extra steps when adding it into my project? All I did was literally drag and drop the src folder in (not the .pch and .xcodeproj files).

Please can someone help me out - I've tried searching for help online but couldn't find anything of use.

  • possible duplicate of [iPhone ARC & Facebook SDK](http://stackoverflow.com/questions/8421338/iphone-arc-facebook-sdk) – Brad Larson Jan 05 '12 at 17:52
  • See also [Using Non-ARC Code in an ARC-Enabled Project - Adding Facebook](http://stackoverflow.com/questions/8701780/using-non-arc-code-in-an-arc-enabled-project-adding-facebook) – Brad Larson Jan 05 '12 at 17:52

2 Answers2

2

The SDK is outdated for the ARC yes. You have to turn off ARC for the SDK, check this answer out: How can I disable ARC for a single file in a project?

Community
  • 1
  • 1
MaikelS
  • 1,309
  • 4
  • 16
  • 33
1

go to project navigator->Build Settings

set Objective-C Automatic Reference Counting to NO.

Mudit Bajpai
  • 3,010
  • 19
  • 34