Search code examples
ipadtwitterhttp-status-code-401mgtwitterengine

MgTwitterEngine + SAOauthTwitterEngine generate 401 on post


when i do a simple request using twitter api on ipad simulator, why does server send a 401 error while using iphone simulator it seems to work?

i use MGtwitterEngine and SAOauthTwitterEngine. it looks like a common problem but i didn't find any solution throughout the web.

SOLUTION

control the response code in your MGtwitterenginedelegate method implementation if it's 401 you have to launch

[_engine clearAccessToken];

and relaunch login methods.


Solution

  • The device needs to be authenticated separately. Did you go through the OAuth authentication process on the device?