How can I make an advertising for facebook with differnt links like this one

How can I make an advertismlent with differnet links towards my website like this one

I tried to see how but I couldn’t find it I just saw java script but not the program