2016-08-29 124 views
1

我试图在我的Swift应用程序和Pinterest之间实现身份验证,我可以在Safari中打开最有价值的身份验证页面,但是后输入我的Pinterest的用户名/密码,并按下OKAY,应用程序引发以下错误消息:Pinterest身份验证失败:-canOpenURL:URL失败:“pinterestsdk.v1:// oauth

CODE:

PDKClient.configureSharedInstanceWithAppId("************")//replaced appid with **** 

let permission = [PDKClientReadPublicPermissions] 


PDKClient.sharedInstance().authenticateWithPermissions(permission, fromViewController: self, withSuccess: { (pdk :PDKResponseObject!) -> Void in print("success PDKResponseObject: \(pdk)") 
}) { (err :NSError!) -> Void in 
    print("errori tuli: error NSError: \(err)") 
} 

错误:

-canOpenURL: failed for URL: "pinterestsdk.v1://oauth/?app_name=MyApp&permissions=read_public&client_id=4853625080298613350" - error: "(null)" 

我想不通OU什么是错的。所有帮助愉快!

+0

你能解释清楚吗?我被困在你所在的地方 –

回答