Permalink
Browse files

different FB login redirect for iOS user agent

  • Loading branch information...
1 parent 317c6d9 commit 443fb5cc51b010ea455f00bb4cc44ad313566f82 @brow committed Dec 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 FacebookLikeView/Classes/FacebookLikeView.m
@@ -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;
}

0 comments on commit 443fb5c

Please sign in to comment.