You will be able to buy the tickets for the leg from Seville to Faro at the alsa.es ticket booth at Plaza das Armas Bus Station in Seville.
The ticket for the leg Faro to Lagos will have to be bought at Faro Bus Station on arrival there. You may also be able to buy the ticket there for the sector Lagos to Salema.If not you will have to buy it at Lagos Bus Station on arrival there.
There are no automated machines at any of the bus station en route.