简体   繁体   English

在IOS上使用Parse的PFTwitterUtils登录Twitter时,NSURLErrorDomain错误1012

[英]NSURLErrorDomain Error 1012 when logging into twitter using Parse's PFTwitterUtils on IOS

I can't figure out how to allow PFusers to log into Twitter. 我不知道如何允许PFuser登录到Twitter。 I followed the steps that parse recommended and the app keeps returning this error when I attempt to log in. 我按照分析建议的步骤进行操作,并且尝试登录时应用程序始终返回此错误。

"Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn't be completed. “错误域= NSURLErrorDomain代码= -1012”该操作无法完成。 (NSURLErrorDomain error -1012.)" UserInfo=0x1704618c0 {NSErrorFailingURLStringKey= https://api.twitter.com/oauth/request_token , NSUnderlyingError=0x17424d050 "The operation couldn't be completed. (NSURLErrorDomain错误-1012。)“ UserInfo = 0x1704618c0 {NSErrorFailingURLStringKey = https://api.twitter.com/oauth/request_token,NSUnderlyingError = 0x17424d050”该操作无法完成。 (kCFErrorDomainCFNetwork error -1012.)", NSErrorFailingURLKey= https://api.twitter.com/oauth/request_token }" (kCFErrorDomainCFNetwork错误-1012。)“,NSErrorFailingURLKey = https://api.twitter.com/oauth/request_token }”

I have looked at other questions posted about the 1012 error, and they said to add a callback URL on the Twitter developer page. 我查看了有关1012错误的其他问题,他们说要在Twitter开发人员页面上添加回调URL。 I added one, which I am not sure what it's purpose is, and I still get the error. 我添加了一个,我不确定它的目的是什么,但仍然出现错误。 Any help would be greatly appreciated. 任何帮助将不胜感激。 (Also I am still using Objective-C, so please use that in examples) Thanks. (而且我仍在使用Objective-C,因此请在示例中使用它)谢谢。

Ran into this issue myself. 我自己遇到这个问题。 I have been getting 1012 when authorising Twitter when the device or simulator doesn't have any credentials set within the Twitter section within Settings.app. 当设备或模拟器在Settings.app的Twitter部分中未设置任何凭据时,授权Twitter时得到1012。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM