Whenever I try to authenticate with app the following msg comes:
{"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"}
How can I solve it?
The message is pretty explicit: Invalid Application ID
.
Have you added the URL Type?
Using this initializer:
PDKClient.configureSharedInstanceWithAppId("0000")
and this 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)")
}
and assuming your client_id
is correct, you should be in business.