This question already has an answer here:

I'm using Moto G second generation. My device is unable to install Facebook app after completion of download from play store. I checked few solutions, even removed my google account, but didn't work. I have enough space on my device and a fair connection speed. This problem is occurring only with Facebook application. Although, I tried to download Facebook from other sources but still there's problem in installation.

marked as duplicate by Matthew Read Mar 29 '16 at 19:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Possibly not. This error is occurring with Facebook app only. – Tibs Ath Mar 9 '15 at 13:53
  • Is it "-504" or "504"? If it's the latter, then it's a duplicate. However, I didn't find other occurrences of "error -504" on Google. – Andrew T. Apr 3 '15 at 19:10