Search code examples
iosiphonehttp-redirectoauthfoursquare

Oauth suddenly not working on iphone (with FS app installed only)


Our iphone app allows for sign in via Foursquare via oauth. It was working fine and recently stopped working.

The error we get is: Connecting Failure: Callback uri is not valid for this consumer.

HOWEVER, if the user does not have the foursquare app installed on their phone it works fine as before. It seems as if FS is now doing a redirect to handle the oauth inside the FS app and this fails when attempting to return to the originating application. Via safari it seems to work.

This is on ios 9.

Solutions?? Thanks!

enter image description here


Solution

  • We've changed to use a SafariViewController and this seems to force Foursquare to not to this strange in-app redirect, solving the issue. This is also Apple's preferred oauth method, so probably the way to go.

    Still seems like a problem on the Foursquare side that they may want to address for others however. I'm closing this question. Thanks.