We are using this code for Facebook share button. We placed this code in our functions.php But we are getting pagenot found in fb share popup window. How to fix this issue.

<span class="fb-share-button" data-href="<?php wp_get_shortlink(); ?>" data-layout="button_count"></span>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.