Pinterest的SDK验证权限失败 [英] Pinterest SDK authenticate permission fail

查看:2004
本文介绍了Pinterest的SDK验证权限失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个引脚形象Pinterest的。然而,当我试图对用户进行认证,它失败。

I am trying to pin an image to pinterest. However, when I tried to authenticate the user, it fails.

我呼吁按钮点击以下code,它带我到Pinterest的应用程序和身份验证对话框显示,

I am calling the following code on button click, which takes me to pinterest app and the authentication dialog is shown,

[[PDKClient sharedInstance] authenticateWithPermissions:@[PDKClientReadPublicPermissions,
                                                          PDKClientWritePublicPermissions,
                                                          PDKClientReadPrivatePermissions,
                                                          PDKClientWritePrivatePermissions,
                                                          PDKClientReadRelationshipsPermissions,
                                                          PDKClientWriteRelationshipsPermissions]
                                            withSuccess:^(PDKResponseObject *responseObject)
{
    PDKUser *user = [responseObject user];
    NSLog(@"%@ authenticated!", user.firstName);
} andFailure:^(NSError *error) {
    NSLog(@"authentication failed: %@", error);
}];

也没什么打印在控制台中。我无法访问块内的responseObject。

Also nothing prints in the console. I am unable to access the responseObject inside the block.

在这里输入的形象描述

,验证失败。

在这里输入的形象描述

我不知道,我可能是错的。我也跟着在 pinteret /开发商提到的步骤。任何人都可以指导我用正确的方式?

I have no idea where I could be wrong. I followed the steps mentioned in the pinteret/Developers . Can anyone guide me in the right way?

推荐答案

有可能是你正在传递和/或由您在应用程序设置中提供的回调URL错误。检查网址,作为推荐。

Probably there is an error in the callback URL you are passing and /or which is provided by you in the app settings. Check that Url, as a recommendation.

这篇关于Pinterest的SDK验证权限失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆