Locking ribbon-cable in place
That's a "flat flex" cable (not a ribbon cable), and the connectors are not really intended to be repairable.

The proper fix would be to replace the connector with a new one, but this requires a person with fairly good SMT skills and equipment.

If you do try glue (e.g., "Superglue", or cyanoacrylate), be extremely careful to keep it away from the actual electrical contacts. I would recommend staying away from the runniest formulations; use one that has a bit of thickener it it.