facebook Security Warning while user has enabled secure login - iPhone

狂风中的少年 提交于 2019-11-28 01:22:59

You should use Facebook's official SDK.

Download it from here - Facebook SDK

Facebook says

The Facebook SDK 3.8 for iOS is a minor update that adds XCode 5 and iOS 7 support, stability fixes, automatic permissions refresh and the ability to specify batch request parameters to (FBRequestConnection).

jpd

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.

This is not an error , but just a security warning from Facebook. And I have resolved it in my application to escape from this.

Check the below method in 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;
}

check if it's currently present in file. If not then go with it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!