• Resolved ajayrds

    (@ajayrds)


    Hello,

    Facebook share shows an error with a link using localhost instead of siteurl. Twitter share shows a blank page after authentication.
    I have made sure that the fb app id is set in client id field and twitter consumer key/secret fields in the plugin settings.
    Could you please help me get this working or point me in the right direction?

    Ajay

    https://www.ads-software.com/plugins/wp-social-invitations/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Damian

    (@timersys)

    HI Ajax urls needs to be publicly accesible. So it won’t work on localhost Im afraid.

    Thread Starter ajayrds

    (@ajayrds)

    Damien,

    The urls are on a publicly hosted website, I am wondering why a localhost address is getting picked up by the share links. Please check this link – https://www.gounesco.com/proof/selfie-taaj

    Plugin Author Damian

    (@timersys)

    It seems that when you migrated from localhost something didn’t change. Check your wp-config.php for localhost references,

    Or settings-> General in wp-admin

    Thread Starter ajayrds

    (@ajayrds)

    Thank you.
    In the wp-config.phot file, the only reference I can see is –
    define(‘DB_HOST’, ‘localhost’);
    I checked the options table too but cannot find any reference to localhost there.
    Could you point out the parameter used by the plugin to create the share url? Or the relevant code?

    Ajay

    Plugin Author Damian

    (@timersys)

    The code is generated with:
    "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];

    Basically with PHP SERVER_NAME variable. You will need to ask you hosting why is returning localhost intead the live url

    Thread Starter ajayrds

    (@ajayrds)

    Thanks Damien for your patience, it was an incorrect setting (for the server_name variable as you pointed out) on the nginx server, I am to blame for this!
    Marking this as resolved.

    Ajay

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook and share not working’ is closed to new replies.