You can either straight up ask their permission, or be candid and only shoot the conditions they live in. If you plan on getting the photos published you will need them to sign releases prior to shooting. If the latter, and you seek publishing, you will have to avoid showing their faces. I have seen shows of "homeless" , they were cooperative and had signed releases. I'm not sure, but they may have been compensated for cooperating.