Plugins for Kitura-Credentials framework that authenticate using the Facebook web login with OAuth and a Facebook OAuth token that was acquired by a mobile app or other client of the Kitura based backend.
The latest version of Kitura-CredentialsFacebook requires Swift 4.0 or newer. You can download this version of the Swift binaries by following this link. Compatibility with other Swift versions is not guaranteed.
A complete sample can be found in Kitura-Credentials-Sample.
options is an optional dictionary ([String:Any]) of Facebook authentication options whose keys are listed in CredentialsFacebookOptions.
This example shows how to use CredentialsFacebookToken plugin to authenticate post requests, it shows both the server side and the client side of the request involved.