Skip to content

Social Authentication

Danilo edited this page Jun 19, 2020 · 2 revisions

Overview

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.

Sample

#import <Accounts/Accounts.h>

SOAPEngine *soap = [[SOAPEngine alloc] init];
    
soap.authorizationMethod = SOAP_AUTH_SOCIAL;
soap.socialName = ACAccountTypeIdentifierFacebook; // com.apple.facebook
soap.apiKey = @"158075021000";
Header of request :
Accept: "text/xml; charset=utf-8"
Content-Type: "text/xml; charset=utf-8"
Authorization: Bearer eyJhbGci......CI6IkpXVCJ9

Remarks

This method is no longer available with the new Facebook specifications.