Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of unresolved identifier PFFacebookUtils

I've done all is mentioned here (https://www.parse.com/docs/ios_guide#fbusers/iOS) for implement in iOS the Facebook Login.

The problem is that i have an compile error "Use of unresolved identifier PFFacebookUtils" near che line

PFFacebookUtils.initializeFacebook()

in AppDelegate. I've correctly imported the Parse and Facebook Framework into my project. Are there some bug knowed in Xcode 6 Beta?

like image 603
Kobazzo Avatar asked Sep 14 '14 19:09

Kobazzo


2 Answers

Parse docs doesn't mention this yet: After downloading the Parse iOS SDK, You should include the ParseFacebookUtils.framework into your project, then import it in each file you want to use it, like you did for the Parse.framework itself:

#import <Parse/Parse.h>// This use to be enough to use Facebook utilities
#import <ParseFacebookUtils/PFFacebookUtils.h>// But now we should import this framework as well to use Facebook utilitis

Parse team has separated the Facebook related classes from Parse API, hence a ParseFacebookUtils.framework

like image 70
Malloc Avatar answered Oct 17 '22 19:10

Malloc


You may need to

import ParseFacebookUtils

in your AppDelegate

like image 1
abinop Avatar answered Oct 17 '22 21:10

abinop