The recommended oil for an F-350 diesel depends on the specific year and engine of your truck.
You should always consult your owner's manual for the precise specifications. This manual will list the recommended viscosity grade (like 5W-40 or 15W-40) and the required oil certifications (like CJ-4 or CK-4).
Generally, modern F-350 diesel trucks require synthetic or high-quality synthetic blend oils that meet the specifications outlined in the owner's manual. Using the incorrect oil can severely damage your engine. Don't rely on generic advice; check your manual!