Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I guess your application is not getting any access_token for login into facebook. It might be giving you null.</p> <p>If it's the problem.Then in hook into FBDialog and</p> <p>change this:</p> <pre><code>- (NSString *) getStringFromUrl: (NSString*) url needle:(NSString *) needle { NSString * str = nil; NSRange start = [url rangeOfString:needle]; if (start.location != NSNotFound) { // confirm that the parameter is not a partial name match unichar c = '?'; if (start.location != 0) { c = [url characterAtIndex:start.location - 1]; } if (c == '?' || c == '&amp;') { NSRange end = [[url substringFromIndex:start.location+start.length] rangeOfString:@"&amp;"]; NSUInteger offset = start.location+start.length; str = end.location == NSNotFound ? [url substringFromIndex:offset] : [url substringWithRange:NSMakeRange(offset, end.location)]; str = [str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; } } return str; } </code></pre> <p>with this:</p> <pre><code>- (NSString *) getStringFromUrl: (NSString*) url needle:(NSString *) needle { NSString * str = nil; NSRange start = [url rangeOfString:needle]; if (start.location != NSNotFound) { NSRange end = [[url substringFromIndex:start.location+start.length] rangeOfString:@"&amp;"]; NSUInteger offset = start.location+start.length; str = end.location == NSNotFound ? [url substringFromIndex:offset] : [url substringWithRange:NSMakeRange(offset, end.location)]; str = [str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; } return str; } </code></pre> <p>It might solve your problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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