Twitter OAuth Login Page on iPhone

I have Twitter integrated into my application using Sharekit. Everything works very well, except that if the user clicks on the "Register" link on the "Login / Allow" page, it goes to the error page without registering. Either "Sorry the page does not exist" or "Hold!" Sorry that the profile you were trying to view has been suspended due to strange activity.

The account I use works until login, publishing, etc. But this link seems to go into space. Also, if I click on the “Twitter Gear” / Application Icon, the dialog (browsing the web page with the Twitter-OAuth login page loaded) simply closes.

I can't find anything about how to set up such things, and everything else seemed to work quite easily. The closest link I could find is the Twitter API Issue 1045 link

Thanks to Advance for any help.

Update: I have tested several other Twitter-enabled applications. Most of the ones I checked (TUAW, Joystiq, TFLN) seem to have contributed their own Twitter login page (using XAuth, I guess) the one I found that uses the OAuth Twitter page (Shazam) actually takes you to mobile Safari and it exhibits the same behavior. Maybe I need to minimize my login?

+8
ios iphone twitter-oauth twitter sharekit
source share
5 answers

I suggest you go to the ShareKit class files, go to the two .m files that have “Twitter authorization” (they don’t know which of the two it is, a simple search by xcode should find it) and change the invalid url to which it is sent at this url: https://mobile.twitter.com/signup

This should solve your problem!

+4
source share

I suggest using the packet sniffer on your device to determine the exact URL that is called up when you click on the "Register" link. There are many ways to do this, but on jailbroken phones this is easier. Armed with the url, you can see if it is potentially something that you are doing wrong or really a bug on Twitter.

0
source share

Try Jan Rain, it will simplify the integration of this function without errors.

http://www.janrain.com/products/engage/mobile

0
source share

Here are the ShareKit people I use: https://github.com/baotuo/ShareKit

He has no problems and they have much more improvements. You must try.

0
source share

When you implement Twitter integration, you should not use the library that you used in old projects, but download the new Twitter library. I had problems with twitter oauth when I used an older library. But after downloading and using the new library, the problem was fixed.

0
source share

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


All Articles