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