Fix code to use Promises and also handle invalid responses
Merge pull request #468 from markewallace/FixSocialHelloworld

Fix code to use Promises and also handle invalid responses