Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Xcode error!

So I added the Facebook SDK & done all the steps. When I went to go run the app on the simulator I ran into an error that says

'No Visible interface for FBAccessTokenData declares the selector userID'

I looked on stack overflow & was advised to clean the project, or restart it... Didn't work...

Error:

return (facebookId && facebookId.length > 0 && [facebookId isEqualToString:[[[PFFacebookUtils session] accessTokenData] userID]]);

1 Answer

In you're if statement, you're calling a method of 'userID' on the object that's returned from [[PFFacebookUtils session] accessTokenData]. It sounds like the method userID doesn't exist on the object - perhaps try dumping out to make sure you're getting back the thing you want?