Facebook share does not work correctly with passing parameters in URL

0

I am making use of facebook sharing. But in the URL of the button I'm also passing the user id to do actions later, as follows:

<div class="fb-share-button" 
   data-href="https://meusite?id=<?=$id_pessoa?>" 
   data-layout="button">
</div>

The problem is that the entire view of the share is catching the tags default. But when I go in the debugger of facebook and debug the link with the id is generated the desired visualization in some cases.

I have tried through the dialog too, but without success.

I have tried to pass through segments in the url, like this: data-href="https://meusite/<?=$id_pessoa?>/" . Without success.

Does anyone know of a way to do this without debugging fails?

    
asked by anonymous 25.05.2018 / 03:09

0 answers