Pinterest通过app登录

时间:2015-08-10 05:26:24

标签: ios pinterest

每当我尝试使用app进行身份验证时,都会出现以下消息:

{"status": "failure", "code": 283, "host": "coreapp-ngapi-prod-7c03bdd4", "generated_at": "Thu, 06 Aug 2015 08:02:11 +0000", "message": "The authorization grant is invalid", "data": "Invalid Application ID"}

我该如何解决?

1 个答案:

答案 0 :(得分:0)

消息非常明确:Invalid Application ID

您是否添加了网址类型?

enter image description here

使用此初始值设定项:

PDKClient.configureSharedInstanceWithAppId("0000")

和这个OAuth:

let permission = [PDKClientReadPublicPermissions]
PDKClient.sharedInstance().authenticateWithPermissions(permission,
    withSuccess: { (pdk :PDKResponseObject!) -> Void in
        println("success PDKResponseObject: \(pdk)")
    }) { (err :NSError!) -> Void in
        println("error NSError: \(err)")
    }

并假设您的client_id是正确的,您应该开展业务。