Fix user friend relationship and santize graph_id.