Questions tagged [twrequest]
42 questions
25
votes
4 answers
TWRequest is deprecated in iOS 6.0 - what can I use instead?
I'm developing a Twitter Feed View for an iOS App. I found TWRequest and it works exactly like that which i was looking for. But: i get an Notice: "TWRequest is deprecated: first deprecated in iOS 6.0". What should I use instead?

Tobias Bambullis
- 736
- 5
- 17
- 45
12
votes
1 answer
iOS 5 Twitter framework. Getting OAuth access token for user
Has anyone been able to get the OAuth access token for a user after being granted access to that users account?
twitter mentions using a process called "Reverse Auth" in there iOS docs, but I can't seem to find any mention of it anywhere else.
I'm…

nicksweet
- 3,929
- 1
- 20
- 22
6
votes
2 answers
Using blocks within blocks in Objective-C: EXC_BAD_ACCESS
Using iOS 5's new TWRequest API, I've ran into a brick wall related with block usage.
What I need to do is upon receiving a successful response to a first request, immediately fire another one. On the completion block of the second request, I then…

biasedbit
- 2,860
- 4
- 30
- 47
6
votes
2 answers
Does TWRequest iOS API support application-only authentication?
If iOS user has no twitter accounts, is it possible to use application-only authentication via TWRequest for apis like getting a user's timeline? (user_timeline.json)?
I am currently getting http status 400 with the user_timeline.json API when…

Hisham
- 1,305
- 2
- 15
- 25
5
votes
1 answer
TWRequest seems to leak when used in non-ARC projects
Instruments (Leaks) reports a memory leak when using TWRequest and I can't really see what I'm doing wrong.
Here are the steps to reproduce the issue:
Create a new Xcode project (ARC disabled), add the Twitter Framework and then just added the…

kiteloop
- 1,057
- 13
- 16
4
votes
1 answer
TWRequest performRequestWithHandler no error, but nothing happen
I'm trying to share using Twitter Framework on iOS 5
The user will select which account to use, so the app will share using the account selected.
But whem share pass to performRequestWithHandler nothing happen an the error return null
My code:
for…

Nathan Hegedus
- 344
- 6
- 15
4
votes
1 answer
TWRequest post reply NSURLErrorDomain
I am having trouble sending a reply to a tweet using TWRequest api. I am able to post a new tweet/status successfully but replies are failing with error below. Please advise
The error I receive on the reply post is:
Error Domain=NSURLErrorDomain…

lostfound
- 41
- 1
3
votes
1 answer
TWRequest code works but very slow to show?
I'm working with TWrequest to display my twitter lists in a tableview. The following code works. The problem is it is very slow to update the table. I am NSlogging the request response (which happens very quickly), I am also looping through each…

Andrew Davis
- 2,310
- 1
- 24
- 43
2
votes
1 answer
How can I sign tweets containing my custom "via" with the iOS 5 Twitter framework?
As you probably know Apple released a Twitter framework with iOS 5. It provides a class called
TWRequest which allows you to make HTTP calls to the Twitter API. The accountsd process takes care of all the OAuth signing.
If you make such a TWRequest…

steverab
- 135
- 1
- 9
2
votes
1 answer
requestAccessToAccountsWithType is deprecated in ios6.1, what should i use instead?
-(void)getTwittersFollowers{
ACAccountStore *store=[[ACAccountStore alloc]init];
ACAccountType *twitterAccType=[store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
**[store…

Nitesh
- 1,924
- 21
- 31
2
votes
1 answer
How to tell if TWRequest performRequestWithHandler failed or succeeded
I am posting a request and checking for errors like so:
// Send request out on a background thread
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) {
[postRequest performRequestWithHandler:^(NSData…

Dean Davids
- 4,174
- 2
- 30
- 44
1
vote
1 answer
TWRequest leak in ARC project
I created the function below however it seems to be leaking on performRequestWithHandler.
- (void)getDataForRequest:(TWRequest *)postRequest withSelector:(SEL)selector {
if (twitterAccount != nil) {
[postRequest setAccount:twitterAccount];
…

ajayjapan
- 349
- 4
- 18
1
vote
1 answer
How to attach geolocation to a tweet using TWRequest
I'd like to attach the location of the user to a TWRequest. I've tried to modify the url (with something like this: "http://api.twitter.com/1/statuses/update.json?lat=37.76893497&long=-122.42284884") but the response was "401 Unauthorized" or "400…

Netnyke
- 151
- 1
- 1
- 8
1
vote
1 answer
TWRequest crashing when posting REPLY
I am using TWRequest to post a reply to Twitter (using "in_reply_to_status_id") and for some reason, TWRequest is crashing.
So if a user provides a replyID, then:
if(replyID){
paramDict = [NSDictionary dictionaryWithObjectsAndKeys: replyID,…

Ngoan Nguyen
- 747
- 2
- 9
- 19
1
vote
1 answer
iOS : Post on twitter without open dialogue using twitter.framework
I am trying to posting a tweet on twitter using iOS twitter.framework , somehow its not showing me any error when post request gets done, however its not posting anything on twitter!
Here's my code for
-(void)twitPost
{
ACAccountStore *account…

Hemang
- 26,840
- 19
- 119
- 186