简体   繁体   中英

Facebook Login Dialog Error on iOS

HEllo i am using old facebook sdk i think it is 3.0 and now i am going to update the app but during testing cant login on facebook now please let me know how to fix it. Upgrading to 3.1 is too complex in the app for my app.

在此处输入图片说明

//Facebook Login  
        appDelegate.flag = 1;
        appDelegate.facebook.accessToken = nil;
        appDelegate.facebook.expirationDate = nil;

        NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
        NSArray* facebookCookies = [cookies cookies];
        for (NSHTTPCookie* cookie in facebookCookies) {
            [cookies deleteCookie:cookie];
        }

        NSArray *permissions = [NSArray arrayWithObjects: @"status_update", @"publish_stream", @"offline_access", @"publish_actions", @"read_stream", @"user_photos", @"photo_upload", @"photo_tag", nil];

        [appDelegate.facebook authorize:permissions];

}

At last issue solved that's all because of the parameters there is a single parameter which cause this issue i think facebook deprecate it or something else but issue solved :)

parameter is @"photo_tag"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM