-
-
Notifications
You must be signed in to change notification settings - Fork 75
Social Authentication
Danilo edited this page Jun 19, 2020
·
2 revisions
The authorizationMethod
, socialName
and apiKey
properties allows to set the Authentication Bearer
on the header of the request generated by a social network such as Facebook or Tencent Weibo.
#import <Accounts/Accounts.h>
SOAPEngine *soap = [[SOAPEngine alloc] init];
soap.authorizationMethod = SOAP_AUTH_SOCIAL;
soap.socialName = ACAccountTypeIdentifierFacebook; // com.apple.facebook
soap.apiKey = @"158075021000";
Accept: "text/xml; charset=utf-8"
Content-Type: "text/xml; charset=utf-8"
Authorization: Bearer eyJhbGci......CI6IkpXVCJ9
This method is no longer available with the new Facebook specifications.