callzhang / WokeAlarm

Your everyday alarm clock app, now socialized.
http://wokealarm.com
0 stars 0 forks source link

Facebook token expired #166

Closed callzhang closed 9 years ago

callzhang commented 9 years ago

Facebook has updated their SDK

2015-06-05 11:13:39.059 Woke[3972:1329926] FBSDKLog: Error for request to endpoint 'me': The access token associated with the active session has expired.
2015-06-05 11:13:39.083 Woke[3972:1329926] FBSDKLog: Error for request to endpoint 'me/permissions': The access token associated with the active session has expired.
[fg255,0,0;2015-06-05 11:13:40:854 Woke[3972:807] Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x171264280 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ErrorSessionKey=<FBSession: 0x17016a440, state: FBSessionStateClosed, loginHandler: 0x0, appID: 878112625538046, urlSchemeSuffix: , tokenCachingStrategy:<PFFacebookTokenCachingStrategy: 0x174431600>, expirationDate: (null), refreshDate: (null), attemptedRefreshDate: 0000-12-30 00:00:00 +0000, permissions:(null)>, com.facebook.sdk:ParsedJSONResponseKey={
    body =     {
        error =         {
            code = 190;
            "error_subcode" = 463;
            message = "Error validating access token: Session has expired on Tuesday, 05-May-15 00:40:20 PDT. The current time is Friday, 05-Jun-15 08:13:38 PDT.";
            type = OAuthException;
        };
    };
    code = 400;
    headers =     (
                {
            name = "Access-Control-Allow-Origin";

            value = "*";
        },
                {
            name = "Content-Type";
            value = "text/javascript; charset=UTF-8";
        },
                {
            name = Pragma;
            value = "no-cache";
        },
                {
            name = Vary;
            value = "Accept-Encoding";
        },
                {
            name = "Cache-Control";
            value = "no-store";
        },
                {
            name = "WWW-Authenticate";
            value = "OAuth \"Facebook Platform\" \"invalid_token\" \"Error validating access token: Session has expired on Tuesday, 05-May-15 00:40:20 PDT. The current time is Friday, 05-Jun-15 08:13:38 PDT.\"";
        },
                {
            name = Expires;
            value = "Sat, 01 Jan 2000 00:00:00 GMT";
        }
    );
}}