Adding custom service

Hi,

I want to add a custom service that requires me to have the URL of the post I'm sharing in the sharing string.

I tried using <?php echo get_permalink(); ?> on the code, but it gets stripped.

How do I add this custom service?

Thanks