Facebook exposes an interface to application developers based on Representational State Transfer (REST). REST is an architectural style that uses…