Updated for Facebook Oct 2013 breaking changes