Robert Aitken, from Glenrothes, Fife, works part-time in McDonalds and splashed out £70 of his own money to buy the meals, before serving up burgers and fries to those in need in Edinburgh.
Mat Bryant, who shared Robert's story on Facebook, posted:"This guy's name is Robert Aitken, he is 24 years old (believe it or not) he works for both EE and McDonalds full time working over 60 hours a week.
"The bags he is carrying are full of food for the homeless of Edinburgh, he pays for this from his own pocket and asks for nothing in return, he does it every Friday. Let's get some support for this great guy."
The post has since been shared nearly 80,000 times and Mat, who didn't expect it to go viral, was delighted by the response which has since seen a donation page set up to continue Robert's work.
Robert said he had grown concerned over the plight of the city's rough sleepers during his trips across the Forth.
He had previously bought sandwiches and drinks for rough sleepers before giving out burgers in Edinburgh but decided to buy the burgers he gave away from the chain's restaurant on Princes Street in Edinburgh, he said: "I've thought about doing what I did for some time and I'm so glad I did. My aim is to raise awareness of these people and what some of them have gone through.
"Homeless people are human beings, they've got feelings and want exactly the same as everyone else.
"Whenever I'm out shopping in Edinburgh, if I see a homeless person I will stop and buy them a sandwich and a drink. I think nothing of it.
"I never give them money because you don't know what they are doing with it, but by giving them food it always makes me feel better about myself because at least I know they've eaten something."
Robert's JustGiving page, which can be viewed here, has already raised nearly four and half times the original target of £500.
The donations mean he'll be able to carry on giving out food to Edinburgh's homeless. He said: "I decided to come through to Edinburgh because you often see the homeless sitting on the streets but in Glenrothes you don't.
"I'm overwhelmed with the amount of times my post has been shared online, it's insane and I'm so thankful to everyone that has donated to my JustGiving Page.
"By setting up the page I was hoping for a just a few hundred pounds and a couple of shares on Facebook page - I still can't believe what's happened.
"The feedback I've received it great and I will continue to help the homeless in Edinburgh, spending the money people have donated for them on more food."