Facebook IOS SDk 3.23 Login stopped working

Hello everyone.

I have a published app in the Ios AppStore for Brazil, and it's using facebook login from Facebook IOS SDK 3.23.0

Sundenly I was building a small fix and the the login become unavaible in the IOS, the same app on Android, using the facebook login is working.
But none of the devices where abble to login in the app today from the ios client.

The error message, that appear in the facebook webView login is:
Error
Not Logged In: You are not logged in. Please login and try again.

It's like if the login or the facebook auth-token is invalid but is not requesting a new one as far as I understand, can someone please give me a light here?

code

public override void ViewDidLoad ()
{
base.ViewDidLoad ();

        #region Facebook Stuff
        // Create the Facebook LogIn View with the needed Permissions
        // https://developers.facebook.com/ios/login-ui-control/
        mLoginView = new FBLoginView (ExtendedPermissions) {
            Frame = new CGRect ((iOSConstants.SCREEN_WIDTH-290)/2, iOSConstants.SCREEN_HEIGHT-80, 290, 90)
        };

        // Hook up to FetchedUserInfo event, so you know when
        // you have the user information available
        mLoginView.FetchedUserInfo += (sender, e) => 
        {
            BTProgressHUD.Show(maskType:ProgressHUD.MaskType.Black);

            mUser = e.User;
            mUserId = mUser.GetId ();
            mUserFirstName = mUser.GetFirstName ();
            mUserLastName = mUser.GetLastName ();
            mUserImage = "http://graph.facebook.com/" + mUserId + "/picture?width=200"; 
            mAccessToken = FBSession.ActiveSession.AccessTokenData.AccessToken;

            if(FBSession.ActiveSession.IsOpen)
            {
                var dic = new NSDictionary();
                FBRequestConnection.StartWithGraphPath("me/friends?fields=id",dic,"GET",(connection,result,error) =>
                {
                    if(error != null){
                        Console.WriteLine(error.Description);
                        InvokeOnMainThread (() => new UIAlertView ("Error!", "Error has occured.", null, "Ok", null).Show ());
                    }else{
                        var graphObject = result as FBGraphObject;
                        if (mUserSession == null) 
                        {
                            using (var array = (NSMutableArray)graphObject[new NSString("data")])
                            {
                                using(var id = new NSString("id"));
                                for (uint i = 0; i < array.Count; i++) 
                                {
                                    using (var friend = Runtime.GetNSObject<NSDictionary> (array.ValueAt (i))) 
                                    {
                                        mUserFriend = friend["id"].ToString ();
                                        mUserFriendsList.Add (mUserFriend);
                                    }
                                }
                            }
                            mUserSession = UserSession.setUserSession (mUserId, mUserFriendsList, mAccessToken, mUserImage, mUserFirstName, mUserLastName);
                        }
                    }
                });
            }
        };
        #endregion
        View.AddSubview (mLoginView);
    }

Answers

  • ViniciusVieiraViniciusVieira USMember
    edited August 2015

    Could someone from Xamarin look at this, I've sent an email to support and I'm not getting a response in any front.

    Thanks.

  • Up, Xamarin team can please look into this?

    Thanks

Sign In or Register to comment.