Obama opposes talks with Hamas