iOS LinkedIn API error

后端 未结 5 708
心在旅途
心在旅途 2021-01-07 05:10

I am trying to implement this LinkedIn library in my project, but it seems that I get an error while I try to present the LinkedIn screen:

Authorizati

5条回答
  •  半阙折子戏
    2021-01-07 05:44

    You should have to use:

    code=https://www.linkedin.com/oauth/v2/authorization?
    

    In place of:

    code=https://www.linkedin.com//uas/oauth2/authorization?
    

    Also in linkedin api:

    LIALinkedInAuthorizationViewController.m
    LIALinkedInHttpClient
    

    Change:

    NSString *accessTokenUrl = @"/uas/oauth2/accessToken?grant_type=authorization_code&code=%@&redirect_uri=%@&client_id=%@&client_secret=%@";
    

    By:

    NSString *accessTokenUrl = @"/oauth/v2/accessToken?grant_type=authorization_code&code=%@&redirect_uri=%@&client_id=%@&client_secret=%@";
    

提交回复
热议问题