I might not understand the question correctly as I don’t understand what oculus has to do with grid snapping. In any case it largely depends on what kind of grid you are using.
I will shoot in the dark here and say that the only thing you need to do is adjust the position of the object in order for it to snap to a grid.
NewPosition = Round( OriginalPosition / GridSize ) * GridSize (this is not actual code)