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

旧巷老猫 提交于 2019-12-02 05:25:58

I had the same issue with my ios app and this is what i have done to resolve my problem. i have found the below url in my app and changed the connection from http to https.

earlier url: http://www.facebook.com/connect/login_success.html

changed url: https://www.facebook.com/connect/login_success.html

now it's working fine.

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;
}

Apart from implementing :

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation`

you have to add URL Types > URL Schemes into your application plist, with value : fb1234567890 where 1234567890 is your App ID.

See Item 5: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/

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