Actually it's totally incorrect to say that "in order to be real-time, you need to use JS SDK"!
Facebook has "Realtime Updates Graph API" and every time some data gets updated, your local db gets updated automatically, then you don't need to use JS SDK