Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Foursquare login page now returns a requests from Facebook website. So you could login into Foursquare using FB credentials. </p> <p>One of those responses brakes the <strong>Foursquare2</strong> logic <a href="https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=10#cb=xxx&amp;origin=https%3A%2F%2Ffoursquare.com%2Fxxx&amp;domain=foursquare.com&amp;relation=parent&amp;frame=xxx&amp;" rel="nofollow">https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=10#cb=xxx&amp;origin=https%3A%2F%2Ffoursquare.com%2Fxxx&amp;domain=foursquare.com&amp;relation=parent&amp;frame=xxx&amp;</a><strong>error=unknown_user</strong> </p> <p>Foursquare2 is looking for the "error=" in the response. And it performs a delegate call-back if it finds it.</p> <p>To fix it replace your ' webView:shouldStartLoadWithRequest:navigationType:'</p> <p>in Foursquare2.m with</p> <pre><code>- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSString *url =[[request URL] absoluteString]; if ([url rangeOfString:@"facebook.com"].location != NSNotFound) return YES; //ignore Facebook authentication if ([url rangeOfString:@"code="].length != 0) { NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]) { if ([[cookie domain]isEqualToString:@"foursquare.com"]) { [storage deleteCookie:cookie]; } } NSArray *arr = [url componentsSeparatedByString:@"="]; [delegate performSelector:selector withObject:[arr objectAtIndex:1]]; [self cancel]; }else if ([url rangeOfString:@"error="].length != 0) { NSArray *arr = [url componentsSeparatedByString:@"="]; [delegate performSelector:selector withObject:[arr objectAtIndex:1]]; FourSquareLog(@"Foursquare: %@",[arr objectAtIndex:1]); } return YES; } </code></pre> <p>Notice a new </p> <pre><code>if ([url rangeOfString:@"facebook.com"].location != NSNotFound) return YES; //ignore Facebook authentication </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload