For a road that has sidewalks on both sides of the road, it is acceptable to walk on the sidewalk on either side of the road (facing oncoming traffic or your back to oncoming traffic) because you are separated from the automobiles.
For a road with a sidewalk only on one side, it is recommended to use the sidewalk for traveling in either direction (with traffic or against traffic). Again the sidewalk helps separate you from the automobiles.
If no sidewalks exist on the road, it is recommended to walk facing oncoming traffic on the same side of the road as the oncoming traffic. Also, you should get as far to the side of the road as possible to provide additional space between you and oncoming cars.
When bicycling, you will want to ride on the right (going in the same direction as automobile traffic).