Fix undefined function error in fb-invites