Preheat oven to 350 degrees. Place pecans on baking sheet and toast for 6 minutes until fragrant. Let cool then finely chop. Set aside.
In a small bowl whisk together flour and salt.
Cream butter and sugar in large bowl. Add vanilla and beat until smooth. Stir in half of dry ingredients until just combined. Add remaining dry ingredients and the toasted finely chopped pecans. Mix until just combined. Shape the dough into two balls and wrap in plastic wrap. Refrigerate for 1 hour.
Preheat oven to 350 degrees. Line a baking sheet with parchment paper. Take one ball of dough out of the refrigerator. Roll the dough out on a floured surface to a 1/4 inch thick. Cut out the cookies with a 2 or 3 inch heart cookie cutter for the top and bottom of the cookie or you can use a cookie cutter with a small heart cutout in the center for the top cookie and a solid cookie for the bottom. Arrange on the parchment lined baking sheet 2 inches apart and bake for about 15 minutes or until lightly browned around the edges. Keep your eye on the tray so it doesn't brown too quickly. Cool on the sheet then remove to wire rack. Repeat with second ball of dough. Spread 1 tsp. raspberry jam on bottom cookie then sandwich with another cookie on top. Sprinkle with confectioners sugar.