Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author scibuff

    (@scibuff)

    Hi,

    the problem is with the og:title value. If you have a look at the source of the html page, it gives the following: <meta property="og:title" content="Dance Yrself CleanBASTILLE - Laura Palmer EP" />

    That is wrong, the site title and the post title should be separated by ‘ | ‘ but they’re not. I’m a bit puzzled as this works exactly as it is supposed to everywhere else I’ve looked. By any chance, did you or anyone else modify any of the plugin’s code?

    If not, could you please do the following:

    In your dashboard go to

    Plugins > Editor

    then on the right side in the “Select plugin to edit” select “WordPress Connect” and under “Plugin Files” find “wordpress-connect/src/WordpressConnect.php” (should be 5th from the top but may not)

    Click on the file and find the line that looks like this:

    $title = [some stuff here]

    can you tell me the following is there:

    $separator = '|';
    $title = get_bloginfo( 'name' ) . wp_title( $separator, FALSE, 'left' );

    if so, could you scroll down a bit and check that the following is there

    <meta property="og:title" content="<?php echo $title; ?>" />

    intact?

    Thanks

    Thread Starter Luke

    (@danceyrselfclean_admin)

    Thanks for the response.

    No one has edited the plugin code and it seems that both

    $separator = '|';
    $title = get_bloginfo( 'name' ) . wp_title( $separator, FALSE, 'left' );

    and

    <meta property="og:title" content="<?php echo $title; ?>" />

    are present and intact

    Plugin Author scibuff

    (@scibuff)

    hmmm, it must be then the output of the wp_title function in your WordPress installation – which version do you have?

    if you want a temporary solution would be to remove the get_bloginfo( 'name' ) . part, so that the line looks like this:

    $title = wp_title( $separator, FALSE, 'left' );

    (you can do this yourself, just delete the unwanted part and hit the “update file” button at the bottom). One more thing, because Facebook caches the open graph data it pulls from pages you may need to reset the cache. This is done by entering the URL (for which you’d like to reset the cache) into the Linturl Facebook Tool (and hit “Debug”)

    Meanwhile I’ll have a look at the wp_title function and see if I can fix the issue in the next release.

    Thanks

    Thread Starter Luke

    (@danceyrselfclean_admin)

    Ok thanks i tried that however im still seeing the same problem.

    What i did notice though was that when putting my URL in the debugger i get a 503 Response Code.
    Critical Errors That Must Be Fixed
    Bad Response Code URL returned a bad HTTP response code.

    Plugin Author scibuff

    (@scibuff)

    The problem is that when the Facebook bot visits the page to gather the information about it (from the og: meta values) it sees an error. You can see what the facebook bot see by using the debugger. For this page the output says that

    Object at URL ‘https://socialheroics.com/social-heroics-design-challenge/&#8217; of type ‘website’ is invalid because the domain ‘socialheroics.com’ is not allowed for the specified application id ‘397552810305317’. You can verify your configured ‘App Domain’ at https://developers.facebook.com/apps/397552810305317.

    It seems that you have some sort of settings set for the application which is causing this. Try to create a brand new app just for WP-Connect – https://wp-connect.tomasvorobjov.com/docs/#configure

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress Connect] Sharing on facebook error’ is closed to new replies.