How to install facebook sdk for iOS using cocoapods?

Changing the pod link to

pod "Facebook-iOS-SDK"

solved it why do they put \' in documentation is the question now?

EDIT: This answer is now outdated. The correct way to install facebook Pod is as @aramusss described above.


Facebook-iOS-SDK has been deprecated (see the message cocoapods give you when you use pod install).

According to Facebook You should use:

pod "FBSDKCoreKit";
pod "FBSDKLoginKit";
pod "FBSDKShareKit";
pod "FBSDKMessengerShareKit";