我有上传照片的应用程序,就像在Instagram应用程序中一样。首先我的应用上传照片并返回链接。然后在状态消息中发送链接。当我在我的iPhone上测试时,一切正常,但当我在另一部iPhone上测试时,twitter返回代码215错误的身份验证数据。任何想法可能是错的?感谢回复。-(void)tweet:(NSString*)identifierwithCompletionHandler:(void(^)())completionHandler{ACAccountStore*accountStore=[[ACAccountStorealloc]init];//Createanaccoun
据我了解,当我调用[ACAccountStorerequestAccessToAccountsWithType:options:completion]时,用户应该会看到一个UIAlert,询问他们是否授予我的应用程序权限。当我运行这段代码时,从来没有提示,granted变量始终为“false”-(void)myfunction{if(!_accountStore)_accountStore=[[ACAccountStorealloc]init];ACAccountType*fbActType=[_accountStoreaccountTypeWithAccountTypeIdentif
我正在通过AccountsFramework集成facebook,我搜索并找到了一些方法来做到这一点。它是第一次工作,但后来它显示在日志下方并且没有提供任何信息。日志:Dictionarycontains:{error={code=2500;message="Anactiveaccesstokenmustbeusedtoqueryinformationaboutthecurrentuser.";type=OAuthException;};}我使用的代码ACAccountStore*_accountStore=[[ACAccountStorealloc]init];;ACAccountT
所以我已经研究了一段时间了,并决定伸出手去问问群众。我知道当通过iOS应用程序发布到Facebook时,该应用程序需要在写入之前进行读取,即在发布到墙上之前读取用户电子邮件。而且我知道这些权限列表不能在同一个请求中完成。所以我拼凑了如下代码。classfuncpostToFacebook(message:String,appID:String){varaccountStore=ACAccountStore()varaccountType=accountStore.accountTypeWithAccountTypeIdentifier(ACAccountTypeIdentifierFa