Barack Obama’s father was a resident on a student visa but still a foreigner.
In fact, he was an illegal alien. He broke the law by lying on his Visa application. At the time, anyone associated with Communists or Polygamists were denied entry into the country. He associated (in fact was) both.
Also the term "Resident" as meant by the court in Wong Kim Ark was contingent upon having a permanent domicile in this nation, which he did not, nor would he have been permitted to have one. In fact, I believe he was deported for having low moral character.
That actually supports the contention that he is Obama's real father. Of course Obama Sr was a skirt chaser, so maybe it doesn't.