草庐IT

Twitter-agent

全部标签

iphone - 使用帐户框架在 iOS 5 Twitter 中转推、回复和收藏

我在我的应用程序中集成了iOS5Twitter。我能够通过集成了Twitter和帐户框架的TWTweetComposeViewController发送推文。现在我想借助Accounts框架在iOS5中转发、回复和收藏。 最佳答案 使用以下代码进行转发。-(void)_retweetMessage:(TwitterMessage*)message{NSString*retweetString=[NSStringstringWithFormat:@"http://api.twitter.com/1/statuses/retweet/%@

ios - Facebook 未显示在 UIActivityViewController 中,但 twitter 显示

我的iOS是8.1.2,我正在使用UIActivityViewController进行社交分享。我单击一个按钮并允许UIActivityViewController呈现-(IBAction)UIActivityTypeButtonClick:(id)sender{NSString*text=@"Iamsharingthistext";NSArray*sharedArray=@[text];UIActivityViewController*activityVC=[[UIActivityViewControlleralloc]initWithActivityItems:sharedArra

ios - iOS 11 中的 Twitter 分享

我想就iOS11及更高版本中的Twitter分享问题进行澄清。Apple官方文档在发行说明中说明如下:SocialaccountshavebeenremovedfromSettingsiniOS11.Third-partyappsnolongerhaveaccesstothosesigned-inaccounts.(31687059)和官方Twitter文档here指出:iOS11nolongersupportsusingTwitterthroughthebuilt-insocialframework.Instead,youcanuseTwitterKit3toTweet,loginu

iphone - iOS 5 中的 Twitter 用户 ID

我在iOS5中使用以下代码从Twitter获取用户详细信息。if([TWTweetComposeViewControllercanSendTweet]){//Createaccountstore,followedbyaTwitteraccountidentiferaccount=[[ACAccountStorealloc]init];ACAccountType*accountType=[accountaccountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];//Requestaccessfromtheuse

ios - SLComposeViewController 对 Facebook 和 Twitter 的解雇方式不同?

我有一些如下所示的社交分享代码:SLComposeViewController*composer=[SLComposeViewControllercomposeViewControllerForServiceType:…];[composersetInitialText:…];[composeraddURL:…];[composersetCompletionHandler:^(SLComposeViewControllerResultresult){[someControllerdismissViewControllerAnimated:YEScompletion:^{…//1}];}

ios - OAuth2 "social login"流程(允许通过 Facebook/Twitter 进行 OAuth2 身份验证): are there any examples/literature?

我正在为基于Web的自定义社交网络应用程序开发原生移动应用程序。我们正在构建一个RESTAPI来与网络服务器通信,我们选择OAuth2作为身份验证方法(grant_type=password流程)。网络应用程序允许用户使用外部服务(即Facebook和Twitter)登录和注册。我们需要在移动应用程序上也允许这样做。问题是:我们如何才能做到这一点?Pinterest移动应用程序能够管理这种情况(见附图)。这里使用的流程是什么?它们的行为是否像经典的OAuth驱动的应用程序(移动应用程序直接通过FacebookAPI充当OAuth客户端?)。如果是这样,那么移动应用程序如何通过Pinte

ios - UIActivityViewController 在 iOS 7 上不显示 FB 和 Twitter

我正在尝试使用UIActivityViewController共享一些项目。在iOS6上它工作正常。但是当我在iOS7上测试它时,只显示邮件图标。怀疑我的SDK太旧,我下载了最新的一个,但它的行为仍然相同。我在模拟器和安装了facebook的设备上进行了测试,没有运气。现在我想不出我做错了什么。这是我的代码-(void)shareButtonWasTapped:(BMPopUpMenuView*)popUpMenu{NSString*shareText;if(_correctPatternFound){shareText=@"Yey,Isolvedapuzzle!";}else{sha

iphone - 尝试使用 Twitter ACAccount 时的奇怪行为

我一直在尝试使用新的Social.Framework,尤其是SLRequest,它们都可在iOS6及更高版本上使用。问题是,我对在尝试发布此类请求时遇到的崩溃感到非常惊讶。我的Facebook和Twitter帐户都遇到过崩溃,所以我知道这与其中任何一个的任何特定问题无关。它必须与我以这种方式获得的ACAccount对象相关:if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")){//iOS6if(_twitterEnabled){if([SLComposeViewControllerisAvailableForServiceType:SL

ios - 使用社交框架检索 Twitter OAuth token (iOS6)

对于如何使用iOS社交框架获取TwitterOAuthtoken,我有点困惑。假设我在iOS6上设置了Facebook和Twitter帐户,我可以获得ACAccount。当我检查FacebookACAccount的ACAccountCredential时,设置了OAuthToken属性,但对于TwitterACAccount,它不是。TwitterACAccount的所有其他详细信息均已设置,只是ACAccountCredential未设置。更令人困惑的是,我看到了一篇关于使用反向身份验证获取OAuthtoken(https://dev.twitter.com/docs/ios/usi

ios - Twitter bootstrap 模式在屏幕消失后无法点击

我尝试在iOS5中使用twitterbootstrap框架的模态功能。用户点击关闭按钮后,模式正确消失,但屏幕上似乎没有其他项目可点击。这种行为只发生在iOS5下。它可以在iOS6和任何桌面浏览器中正常工作。这里是关闭按钮:×这可能是因为iOS5中缺少对html5/css3的支持吗? 最佳答案 Liam先生说的是对的:模态框还会弹出一个背景覆盖层,以防止在背景View之外进行触摸。您可能会在调试中捕获它并编写自己的js以在单击按钮时将其关闭。比如$('.your_class').hide()另请注意,当您打开模态窗口并离开页面时,可