You should change the command to:
setblock ~1 ~ ~ stone_button 1
The datavalue is required to change which direction the button is facing, and thus what surface it is on:
1 = East, 2 = West, 3 = South, 4 = North, 5 = Up
You can also add 8 to any of those to turn it into a pressed button in the same direction.