Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

different FB login redirect for iOS user agent

  • Loading branch information...
commit 443fb5cc51b010ea455f00bb4cc44ad313566f82 1 parent 317c6d9
Tom Brow authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 FacebookLikeView/Classes/FacebookLikeView.m
4 FacebookLikeView/Classes/FacebookLikeView.m
View
@@ -140,8 +140,8 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
}
// Block redirects to the Facebook login page and notify the delegate that we've done so
- else if ([request.URL.path isEqualToString:@"/plugins/like/connect"] &&
- [request.HTTPBody.UTF8String hasPrefix:@"lsd"]) {
+ else if ([request.URL.path isEqualToString:@"/dialog/plugin.optin"] ||
+ ([request.URL.path isEqualToString:@"/plugins/like/connect"] && [request.HTTPBody.UTF8String hasPrefix:@"lsd"])) {
[_delegate facebookLikeViewRequiresLogin:self];
return NO;
}
Please sign in to comment.
Something went wrong with that request. Please try again.