added function to check and proccess facebook share action