Did you have some work done to the headliner - before it fell off? Just wondering why a part like that would come off?
I guess IF you had to use some silicone RTV... I would put some dabs up on the glass closest to the top of the headliner - that should hold it on.