How to link to current page url and title with just php? -




i'm trying modify code non-javascript share buttons share current page url , title (which unfortunately code-writer didn't include how http://sharingbuttons.io/ )

<!-- sharingbutton facebook --> <a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u=" target="_blank" aria-label="">   <div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">     <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="m18.77 7.46h14.5v-1.9c0-.9.6-1.1 1-1.1h3v.5h-4.33c10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg>     </div>   </div> </a> 

there several of these buttons, obviously, i'll use facebook example. i've tried using options suggested on other how-to-get-current-page-url posts on stack , elsewhere, either break button code or cause clicking button open window closes before loads anything.

user facebook opengraph og meta tag post site content ahre dialog

check below link more details

https://developers.facebook.com/docs/sharing/webmasters





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -