user843337
user843337

Reputation:

Trouble integrating Facebook into iPhone app

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.

Upvotes: 0

Views: 314

Answers (2)

Mudit Bajpai
Mudit Bajpai

Reputation: 3020

go to project navigator->Build Settings

set Objective-C Automatic Reference Counting to NO.

Upvotes: 1

MaikelS
MaikelS

Reputation: 1299

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?

Upvotes: 2

Related Questions