Elgg API to share.

Hi all.

Have a question about- how can I make an Elgg functionality to make it possible to share content of my site through Elgg API?

So, the plan:

1. I'm making a footer page "Webmasters".

2. Putting there- to connect with my site please use the next code: {code}bla-bla{/code}

But that's frontend. I'm interesting in the backend.

I'm sure, someone asked some type of question before, but the searching are giving some sht.

So the question is- how (what algorithm?) can I make the program to make a possible to share website through Elgg API?

p.s. I'm pretty sorry for, maybe, noob question, didn't dig that so deep atm.