سؤال

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.

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top