1

Closed

v768 - Facebook Messages causes Mayhem crash

description

When I have a connection set up with the Facebook (Message) event and send myself a message on Facebook, Mayhem crashes with this error in the IDE:

FacebookOAuthException was unhandled
(OAuthException) (#613) Calls to mailbox_fql have exceeded the rate of 300 calls per 600 seconds private void CheckFacebook(object sender, EventArgs e)
    {
        if (Utilities.ConnectedToInternet())
        {
            dynamic result = fb.Get(WhatToCheck); ////SAME LINE OF CODE FROM THE OTHER MAYHEM CRASH (w/ FB Notification)

            // get the id of the most recent wall post
            string latestPostId = result.data[0].id;

            if (postId == null)
            {
                postId = latestPostId;
            }
            else if (!latestPostId.Equals(postId)) // remove later TRUE for testing
            {
                postId = latestPostId;
                Trigger();
            }
        }
        else
        {
            ErrorLog.AddError(ErrorType.Warning, String.Format(Strings.Internet_NotConnected, "Facebook"));
        }
    }
Closed May 4, 2012 at 7:03 PM by erikm1
Fix confirmed in v844

comments

erikm1 wrote May 4, 2012 at 7:03 PM

Seems to be fixed in v844