Facebook Application limit reached when calling FQ

2019-07-26 19:37发布

问题:

Possible Duplicate:
Facebook OAuth Error: Application request limit reached

I wrote a Facebook monitoring app that calls Facebook FQL by default every 30 seconds to determine if the user has any unread notifications, messages, or friend requests.

Recently, it stopped working. When debugging, I found Facebook returns the following error:

error =     {
        message = "(#4) Application request limit reached";
        type = OAuthException;
    };

Huh? How do I fix this? This is a production Desktop App. Obviously the higher the number of users, the higher the number of requests my app will make.

Also, this can't be a spam-preventing measure, my app only reads from FQL, nothing is ever posted...

回答1:

You should be using the subscribe API, not polling Facebook so often. https://developers.facebook.com/docs/reference/api/realtime/