However , Republican presidential candidate John McCain defeated Democratic candidate Barack Obama by a margin of just 26 votes .
Politician John McCain beat Barack Obama by 26 votes in Fresno County in the 2008 election .