bengottlieb / Twitter-OAuth-iPhone

An easy way to get Twitter authenticating with OAuth on iPhone
http://www.standalone.com
799 stars 155 forks source link

Twitter 1.1 comaptibility #117

Open SajjadRaza opened 11 years ago

SajjadRaza commented 11 years ago

A few weeks back Twitter has made transition from 1.0 to 1.1 , and existing version of libraray has issue with new API 1.1. My application has stopped working.

Could any one let me know what changes are required to this library.

Thanks in advance.

SajjadRaza commented 11 years ago

Error Domain=HTTP Code=403 "The operation couldn’t be completed. (HTTP error 403.)" After login Controller it is giving above described error

Soumya81 commented 11 years ago

Login Controller works fine I can get the access token, but during posting a message it fails with error "The operation couldn't be completed (HTTP error 410)". Please help to fix this issue.

hemangshah commented 11 years ago

http://stackoverflow.com/questions/17079636/twitter-oauth-error-domain-http-code-410

hemangshah commented 11 years ago

Me too having the same issue with current library, as twitter API changes from v.1.0 to v.1.1. Where's the developer? Is update will being available?

lhmgrassi commented 11 years ago

What do you need? I made some changes to support login and make tweets...

On Thu, Sep 12, 2013 at 9:05 AM, Hemang Shah notifications@github.comwrote:

Me too having the same issue with current library, as twitter API changes from v.1.0 to v.1.1. Where's the developer? Is update will be available?

— Reply to this email directly or view it on GitHubhttps://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24313061 .

hemangshah commented 11 years ago

The current library, I am using now showing the error like, `Domain=HTTP Code=410 "The operation couldn't be completed. (HTTP error 410.)" so I searched for that, and found that twitter have been updated. I am not sure, about Twitter-OAuth-iPhone library to update for the same or not? Did you update it recently and checked?

lhmgrassi commented 11 years ago

A made a couple of changes. Basically you need:

1 - add yajl json parser to your project 2 - change TWITTER_DOMAIN to @"api.twitter.com/1.1" 3 - change YAJL_AVAILABLE 0 to YAJL_AVAILABLE 1

If there's anything you need, don't hesitate to ask.

best regards,

Grassi

On Thu, Sep 12, 2013 at 10:24 AM, Hemang Shah notifications@github.comwrote:

The current library, I am using now showing the error like, `Domain=HTTP Code=410 "The operation couldn't be completed. (HTTP error 410.)" so I searched for that, and found that twitter have been updated. I am not sure, about Twitter-OAuth-iPhone library to update for the same or not? Did you update it recently and checked?

— Reply to this email directly or view it on GitHubhttps://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24318340 .

hemangshah commented 11 years ago

Are you sure it will solve this issue?

On Thursday, 12 September 2013, lhmgrassi wrote:

A made a couple of changes. Basically you need:

1 - add yajl json parser to your project 2 - change TWITTER_DOMAIN to @"api.twitter.com/1.1" 3 - change YAJL_AVAILABLE 0 to YAJL_AVAILABLE 1

If there's anything you need, don't hesitate to ask.

best regards,

Grassi

On Thu, Sep 12, 2013 at 10:24 AM, Hemang Shah <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

The current library, I am using now showing the error like, `Domain=HTTP Code=410 "The operation couldn't be completed. (HTTP error 410.)" so I searched for that, and found that twitter have been updated. I am not sure, about Twitter-OAuth-iPhone library to update for the same or not? Did you update it recently and checked?

— Reply to this email directly or view it on GitHub< https://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24318340>

.

— Reply to this email directly or view it on GitHubhttps://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24325176 .

Sent from my iPhone

hemangshah commented 11 years ago

You can make better help by upload a sample and share it here with we all.

On Thursday, 12 September 2013, lhmgrassi wrote:

A made a couple of changes. Basically you need:

1 - add yajl json parser to your project 2 - change TWITTER_DOMAIN to @"api.twitter.com/1.1" 3 - change YAJL_AVAILABLE 0 to YAJL_AVAILABLE 1

If there's anything you need, don't hesitate to ask.

best regards,

Grassi

On Thu, Sep 12, 2013 at 10:24 AM, Hemang Shah <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

The current library, I am using now showing the error like, `Domain=HTTP Code=410 "The operation couldn't be completed. (HTTP error 410.)" so I searched for that, and found that twitter have been updated. I am not sure, about Twitter-OAuth-iPhone library to update for the same or not? Did you update it recently and checked?

— Reply to this email directly or view it on GitHub< https://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24318340>

.

— Reply to this email directly or view it on GitHubhttps://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24325176 .

Sent from my iPhone

lhmgrassi commented 10 years ago

works like a charm.

//MGTwitterEngine.m
#define TWITTER_DOMAIN          @"api.twitter.com/1.1"
//MGTwitterEngineGlobalHeader.m
#define YAJL_AVAILABLE 1

and add yajl https://github.com/gabriel/yajl-objc

hemangshah commented 10 years ago

Thanks dude, I will check it soon.

On Thursday, 12 September 2013, lhmgrassi wrote:

works like a charm.

//MGTwitterEngine.m#define TWITTER_DOMAIN @"api.twitter.com/1.1"

//MGTwitterEngineGlobalHeader.m#define YAJL_AVAILABLE 1

and add yajl https://github.com/gabriel/yajl-objc

— Reply to this email directly or view it on GitHubhttps://github.com/bengottlieb/Twitter-OAuth-iPhone/issues/117#issuecomment-24327646 .

Sent from my iPhone

hemangshah commented 10 years ago

@lhmgrassi , your solution done the trick, and its working but wait, it worked for only once, I mean I am able to tweet only once then getting this error,

0FC578F5-57A8-425E-8A7D-E0D5AD30903C failed with error: Error Domain=HTTP Code=401 "The operation couldn’t be completed. (HTTP error 401.)"

Any idea? Thanks for helping out at certain :+1: :)

hemangshah commented 10 years ago

@lhmgrassi, I found that it was due to text I am trying to tweet.

Don't know why, its not allowing, "Hello!" but allowing "Hello" (without quotes) :)

ankushdhawan commented 10 years ago

i get given below error msg .when i want to share my tweet using [_engine sendUpdate:tweetTextField.text]; i get response with error.

Request 77F203B0-5E07-431F-848E-3282BD72329A failed with error: Error Domain=HTTP Code=401 "The operation couldn’t be completed. (HTTP error 401.)"