Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Tick the box in Table IX-C3. If it still does not work, find out where the following code in your page comes from and try to get rid of it:

    <!-- Start AL2FB OGP -->
    <meta property="og:title" content="Photos" />
    <meta property="og:type" content="article" />
    <meta property="og:image" content="https://www.opentennisgravenchon.org/wp-content/uploads/2012/02/logo4.gif" />
    <meta property="og:url" content="https://www.opentennisgravenchon.org/?page_id=14" />
    <meta property="og:site_name" content="Open de Tennis" />
    <meta property="og:description" content="%%wppa%%
    
    Vous ne souhaitez plus appara?tre dans les albums photos du site de l’Open de Tennis de Gravenchon ? Merci d’en faire votre demande sur la page de contact en nous indiquant les photos à retirer." />
    <meta property="fb:app_id" content="224241997777789" />
    <meta property="og:locale" content="fr_FR" />
    <!-- End AL2FB OGP -->

    Thread Starter spacem33t

    (@spacem33t)

    // Generate meta tags
    echo ‘<!– Start AL2FB OGP –>’ . PHP_EOL;
    echo ‘<meta property=”og:title” content=”‘ . htmlspecialchars($post_title, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:type” content=”‘ . $ogp_type . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:image” content=”‘ . $picture . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:url” content=”‘ . get_permalink($post->ID) . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:site_name” content=”‘ . htmlspecialchars($title, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;
    if ($video)
    echo ‘<meta property=”og:video” content=”‘ . $video . ‘” />’ . PHP_EOL;

    $texts = self::Get_texts($post);
    $maxlen = get_option(c_al2fb_option_max_descr);
    $description = self::_substr($texts[‘description’], 0, $maxlen ? $maxlen : 256);
    echo ‘<meta property=”og:description” content=”‘ . htmlspecialchars($description, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;

    $appid = get_user_meta($user_ID, c_al2fb_meta_client_id, true);
    if (!empty($appid))
    echo ‘<meta property=”fb:app_id” content=”‘ . $appid . ‘” />’ . PHP_EOL;

    $admins = get_user_meta($user_ID, c_al2fb_meta_open_graph_admins, true);
    if (!empty($admins))
    echo ‘<meta property=”fb:admins” content=”‘ . $admins . ‘” />’ . PHP_EOL;

    Thread Starter spacem33t

    (@spacem33t)

    // Generate meta tags
    echo ‘<!– Start AL2FB OGP –>’ . PHP_EOL;
    echo ‘<meta property=”og:title” content=”‘ . htmlspecialchars($title, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:type” content=”blog” />’ . PHP_EOL;
    echo ‘<meta property=”og:image” content=”‘ . $picture . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:url” content=”‘ . get_home_url(null, ‘/’) . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:site_name” content=”‘ . htmlspecialchars($title, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;
    echo ‘<meta property=”og:description” content=”‘ . htmlspecialchars(empty($description) ? $title : $description, ENT_COMPAT, $charset) . ‘” />’ . PHP_EOL;

    Thread Starter spacem33t

    (@spacem33t)

    add-link-to-facebook/add-link-to-facebook-class.php
    it comes from this

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Is that a plugin? de-activate it.

    Did you tick the box in IX-C3?

    Thread Starter spacem33t

    (@spacem33t)

    Is a plugin, thanks for your help.
    If I uncheck the open graph protocol (add link to facebook plugin) it’s working.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘problem with sharing to facebook’ is closed to new replies.