Former soldier Robert McVey died on Christmas Eve aged 95.
Veterans and soldiers in camouflage formed a guard of honour as his coffin was carried into the building.
His funeral was held at Woodside Crematorium in Paisley, Renfrewshire, and was led by the Rev Maureen Leitch.
Mr McVey was captured at St Valery during the Second World War and was taken to a Nazi German concentration camp in occupied Poland.
A post on the Wear Your Poppy with Pride Facebook page said that Private McVey was a member of the Seaforth Highlanders.
It said: "At the age of just 21 he was a PoW.
"He is probably one of the last PoWs from the Second World War.
"Please repost this message so this old boy gets a send-off he truly deserves."
It called on serving soldiers, members of the Territorial Army, ex-forces and cadets to attend.
More than 100 people went to the funeral, many having heard about it through social media.
Jim Gaughan, chair of the Royal British Legion's Paisley branch, said: "We went out of respect for an old soldier. You have to respect your comrades."