Hello Sue,
Robert Kilgour -
I have another suggestion for Logie - there is a Logie farm and estate just west of Dunfermline
https://maps.nls.uk/geo/explore/side-by-side/#zoom=16.5&lat=56.06164&lon=-3.48288&layers=6&right=ESRIWorldand
https://maps.nls.uk/view/216390043 - in 1775 - just under the large DUN for Dunfermline.
At this time it was in a detached part of Inverkeithing parish surrounded by Dunfermline parish.
The wording of the OPR for his marriage is "[1791 May] 7th Robert Kilgour Tenant late in Logie and Lillie Pierson both in this Parish gave in their names for proclamation in order to marriage and being regularly proclaimed and no objections made they were married 24th May" (OPR Marriages Dunfermline 424 / 1/ 250). (1791 not 1751 as you stated). I admit the OPR is capable of being read several ways, but I think that it would be more likely to refer to this Logie which is quite close (and probably assumed by most local people to be a part of Dunfermline parish) rather than Logie parish which is some distance away.
There are certainly a lot of Kilgours in the Dunfermline area (and especially in the non-Church of Scotland records) so this may be an area worth considering.
Good luck in your quest.
Regards,
Bill