Ios Pinterest通过应用程序登录

Ios Pinterest通过应用程序登录,ios,pinterest,Ios,Pinterest,每当我尝试使用应用程序进行身份验证时,都会出现以下消息: {"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"} 如何解决它?消息非常明确

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

{"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"}

如何解决它?

消息非常明确:
无效的应用程序ID

您添加了URL类型了吗

使用此初始值设定项:

PDKClient.configureSharedInstanceWithAppId("0000")
这是非统组织:

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

假设你的
客户id
是正确的,那么你应该在做生意。

消息非常明确:
无效的应用程序id

您添加了URL类型了吗

使用此初始值设定项:

PDKClient.configureSharedInstanceWithAppId("0000")
这是非统组织:

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

假设你的
客户id
正确,你应该在做生意。

如何获取有效的应用程序id我已经通过链接创建了应用程序点击添加新应用程序按钮,它为我提供了应用程序id:-1446466使用此api给我上面的消息先生我已经完成了所有这些步骤我的问题是我的应用程序id不起作用,我认为它没有得到pinterest团队的批准。请帮助我我的应用程序id如何有效我也通过了但仍然没有success@SandhyaRathi-我也面临同样的问题。如果您得到解决方案,请提供更多信息。如何获取有效的应用程序ID我已通过链接创建了应用程序单击“添加新应用程序”按钮,它为我提供了应用程序ID:-1446466使用此api给我上述消息先生我已完成所有这些步骤我的问题是我的应用程序ID不工作,我认为它没有得到pinterest团队的批准。请帮助我我的应用程序id如何有效我也通过了但仍然没有success@SandhyaRathi-我也面临同样的问题。如果您得到解决方案,请提供更多信息。请提交您的pod文件和几行代码,显示您在何处以及如何调用Pinterest API。>我使用了这个pod“PinterestSDK”,:git=>“git@github.com:pinterest/ios pdk.git“>应用程序内代理的didFinishLaunchingWithOptions[PDKClient configureSharedInstance with appid:APP ID];>在我的视图中控制器NSArray*权限=@[PDKClientReadPublicPermissions,PDKClientWritePublicPermissions];[PDKClient sharedInstance]authenticateWithPermissions:permission with Success:^(PDKResponseObject*responseObject){NSDictionary*dict=responseObject.parsedJSONDictionary;NSLog(@“%@”,dict);}和失败:^(NSError*error){NSLog(@“%@”,error);}];有点晚了,但是developers.pinterest.com/manage是针对旧API的。如果你想使用SDK和新的API,你需要在developers.pinterest.com/apps/创建一个应用程序。我在几周前也尝试过这一点,但没有收到任何回复。建议的答案对你有用吗?请提交你的pod文件和几行代码,显示你的位置以及如何调用Pinterest API。>我已经使用了这个pod“PinterestSDK”:git=>“git@github.com:pinterest/ios pdk.git“>应用内代理的didFinishLaunchingWithOptions[PDKClient configureSharedInstanceWithAppId:app ID];>在我的视图中控制器NSArray*权限=@[PDKClientReadPublicPermissions,PDKClientWritePublicPermissions][[PDKClient sharedInstance]使用权限进行身份验证:使用权限成功:^(PDKResponseObject*responseObject){NSDictionary*dict=responseObject.parsedJSONDictionary;NSLog(@“%@”,dict);}和失败:^(NSError*error){NSLog(@“%@”,error);}];有点晚了,但是developers.pinterest.com/manage是针对旧API的。如果你想使用SDK和新的API,你需要在developers.pinterest.com/apps/创建一个应用程序。我在几周前也尝试过这个方法,但没有收到任何回复。建议的答案对你有用吗?