2

while trying to login with fb, using graph API, a web page appear showing message.

SECURITY WARNING:Please treat the URL above as you would your password and do not share it with anyone. in ios fb graph api.

this error occurs not all the time, but half of the time.

How to skip this fb message ?

Matrix
  • 7,477
  • 14
  • 66
  • 97

2 Answers2

0

I found one solution. I hope it will work for you.

Just paste this UIWebViewDelegate method in your FbGraph.m file....

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{

    if([request.URL.relativeString hasPrefix:@"https://www.facebook.com/connect/login_success.html" ])
        self.webView.hidden=TRUE;
    return YES;
}
Ajay
  • 1,622
  • 20
  • 36
0

Change url :

self.redirectUri = @"http://www.facebook.com/connect/login_success.html";

FBGraph.m to

self.redirectUri = @"https://m.facebook.com/connect/login_success.html";
and check.

jpd
  • 381
  • 1
  • 2
  • 13