It’s been confirmed that the movie and games are different universes, just like how the books are. Although, sure some things may overlap but some things are canon to just one or the other.
DSAF PREDICTED THE FNAF 2 MOVIE ACCIDENTALLY.
THE TOYS/POSSESSIONS OF WILLIAM'S VICTIMS ARE IN THE BOX IN THE MOVIE.
IN DSAF 3'S BAD ENDING THE BOX CONTAINS THE POSSESSIONS OF DAVE'S VICTIMS. SEE A CONNECTION? ALSO CHECK OUT THE "FNAF 2 AND 4 ARE THE SAME" THEORY, IT HAS A SENSIBLE SUBTHEORY ABOUT WHAT'S IN THE BOX IN THE GAMES.