Preventing Application request limit errors
-
Our app ID and app secret key settings have gone missing from our plugin’s options page. This has “broken” our website, as so many other forum threads have noted in the past. (No app ID and app secret key, and the plugin breaks the site eventually.) I don’t understand why those settings, which have been filled in and working for us for years, would have now come up empty. That is a problem in itself, but I would like to offer a suggestion.
Is it possible for the plugin to check first if the request limit has been reached, and only output the feed content if it has not? That seems like standard programming best practice:
Check for possible problem condition; If the problem condition is not encountered, then output the content; otherwise, output a notice instead.
Any chance something like that could be incorporated into the plugin’s functions?
If that’s not possible, maybe you could offer an option in the plugin settings:
If no app ID or secret key are entered, use our generic ones temporarily?
[ ] yes [ ] no
(Note: using the plugin without an app ID and secret key may cause problems.)If the site owner checks [x] no, the plugin outputs a notice instead of the soon-to-break or broken feed output. Notice could say: Please check the Facebook feed options.
In other words, give the owner the option to (opt in) to use your group app ID and app key, OR choose not to use it if there are no app ID and secret key entered.
Selecting “no” (should be the default setting) would prevent the website from breaking if the ap ID goes missing or becomes unusable for any reason.
The topic ‘Preventing Application request limit errors’ is closed to new replies.