Runtime Error 2 ( fbapierrordomain ) happens when Facebook fails or crashes whilst it's running, hence its name. It doesn't necessarily mean that the code was corrupt in some way, but just that it did not work during its run-time.