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

send update & sendDirectMessage error 401 #90

Open luffydm opened 13 years ago

luffydm commented 13 years ago

hello everyone,

I have an issue when I use this two methods, I get an 401 error Other method have no problem.

I directly store the token that i get from a webservice. The token app is in Read, write, and direct messages

wfettich commented 12 years ago

I have the same problem. Any luck fixing it?

luffydm commented 12 years ago

No for the moment I use my own webservices in php, which can make the call with the same token

genesluder commented 12 years ago

For anyone who has this problem, the twitter api path has changed.

It's building a path like: https://twitter.com/statuses/update.xml

What you want is https://api.twitter.com/1/statuses/update.xml

In MGTwitterEngine.m you have to set:

line 40 - #define TWITTER_DOMAIN @"api.twitter.com"

line 1023 - NSString *path = [NSString stringWithFormat:@"1/statuses/update.%@", API_FORMAT];

Hopefully this project will live long enough to support those of us that have to support users on iOS4 for the time being