MGTwitter not working

I do not want to open default twitter , because it must also be compatible with ios < 5 .

I used MGTwitterEngine . But he does not post tweets. Until a few days, it worked great with ios5. But now it does not work. I think the twitter demo url is depreceated , or not supported with ios5 and 6. What could be the reason? when sending something to twitter, the request fails, and I get the following error:

Error Domain=HTTP Code=404 "The operation couldn't be completed. (HTTP error 404.)

Any help would be appreciated!

+4
source share
3 answers

Modifications ... 1. Change TWTTER_DOMAIN on line 40 of MGTwitterEngine.m (pat published). 2. Chenge OAuthConsumer.h delete all lines of OAuthconsumer. 3. Change the HTTP URL using the line SA_OAuthTwitterEngine.m line 65 ~ 67, add the api line before twtter.com

+7
source

Twitter has deprecated API version 1.
In line MGTwitterEngine.h line 40 change

 #define TWITTER_DOMAIN @"twitter.com" 

to

 #define TWITTER_DOMAIN @"api.twitter.com/1" 

Additional information https://dev.twitter.com/discussions/10803

+26
source

API version 1 is now deprecated. This document may describe an outdated version of the API. Go to API Version 1.1 as soon as possible.

Go through this document.

https://dev.twitter.com/docs/api/1.1/post/direct_messages/new

Point to be noted

  • Api format should me json
  • Api Version v1.1
  • sender and receiver must follow each other.

Request example

POST : https://api.twitter.com/1.1/direct_messages/new.json
POST data : text = hello & screen_name = rajneesh071

0
source

Source: https://habr.com/ru/post/1439512/


All Articles