do we need to pass fb.CONTACTS_APP_ORIGIN as a parameter? I would suggest not passing it as parameter and use it directly by the notifyParent function. 

on the other hand we don't need to pass the empty string as a parameter anymore. it can be inferred by the notifyParent function if the parameter it is not defined data = data || ''