Events Made Easy Forums Tips After update: Facebook share button doesn't share the single event page

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #44052
    Anonymous
    Inactive

    Hello,

    I have updated to the last version of WordPress and Events Made Easy plugin and after this I have a problem

    My FB share button doesn’t share more the single event page. It shares only mydomain.es/events/

    I use Addtoanny plugin for sharing Facebook

    I have tried this solution from forum, but the new button has the same problem: It shares only mydomain.es/events/

    http://www.e-dynamics.be/bbpress/topic.php?id=528

    In the past I had the same problem, and I could arrange… But I didn’t remember exactly how, but this shotcode is in my Default Single Event Format code

    <p>[addtoany url=”#_EVENTPAGEURL” ]</p>

    I think it worked… till the update.

    I think this shortcode worked and now, after update, it didn’t more. Could you give me a better solution?

    Thanks, best regards

    #50711
    Franky
    Keymaster

    The behavior of EME has not changed in that sense, the placeholder #_EVENTPAGEURL prints the event url as it has always done. Maybe you did some extra customization in the addtoany plugin?

    I’ll try it later on as well

    #50712
    Franky
    Keymaster

    And did you try what I mentioned here:

    http://www.e-dynamics.be/bbpress/topic.php?id=809#post-5156

    #50713
    Franky
    Keymaster

    Btw, I just tried

    <p>[addtoany url="#_EVENTPAGEURL" ]</p>

    and it seems to work just fine, even without changing anything to the addtoany code.

    #50714
    Anonymous
    Inactive

    Hello,

    Thanks by your reply

    I tried comment the function

    A2A_SHARE_SAVE_link_vars()

    but this solution gives me an error.

    Fatal error: Call to undefined function A2A_SHARE_SAVE_link_vars() in add-to-any.php on line 135

    Could made I something wrong? I’m sorry I’m not very expert in code. When you say “comment this out everywhere you find it in add-to-any.php” I understood that I had to write /* in the principle and */ in the end. In this way:

    /* function A2A_SHARE_SAVE_link_vars($linkname = FALSE, $linkurl = FALSE) {

    global $post;

    // Set linkname

    if ( !$linkname ) {

    if ( isset( $post ) )

    $linkname = get_the_title($post->ID);

    else

    $linkname = ”;

    }

    $linkname_enc = rawurlencode( html_entity_decode($linkname, ENT_QUOTES, ‘UTF-8’) );

    // Set linkurl

    if ( !$linkurl ) {

    if (isset( $post ))

    $linkurl = get_permalink($post->ID);

    else

    $linkurl = ”;

    }

    $linkurl_enc = rawurlencode( $linkurl );

    return compact( ‘linkname’, ‘linkname_enc’, ‘linkurl’, ‘linkurl_enc’ );

    }*/

    #50715
    Franky
    Keymaster

    No, don’t change the code. Like I said:

    it seems to work just fine, even without changing anything to the addtoany code

    #50716
    Anonymous
    Inactive

    Hello,

    Thanks by your help.

    But, I had already this shortcode

    <p>[addtoany url=”#_EVENTPAGEURL” ]</p>

    in my Default Single Event Format code.

    This is my complete shortcode in Event format:

    <h3> #j #M #Y – #@j #@M #@Y</br>#_LOCATIONNAME</h3><p>#_NOTES</p>#_MAP<p>[addtoany url=”#_EVENTPAGEURL” ]</p>

    With this solution it worked, yes, but before update.

    When I updated WordPress, and I updated the plugins Addtoanny and Events made Easy, it stopped work. Since I updated WordPress and plugins, it shares only mydomain.es/events/

    #50717
    Franky
    Keymaster

    For me it works fine on the latest wordpress, but I’m using the development version of EME of course, maybe that has something to do with it. I’ll try to release that version this evening, so you can just update EME then.

    #50718
    Anonymous
    Inactive

    Thank you very much by your help. I wait then the new version, and I will report if it works.

    Best regards

    #50719
    Franky
    Keymaster

    New version is released, try updating.

    #50720
    Anonymous
    Inactive

    Hello, Thanks but the update doesn’t solve the problem.

    The important problem is with image.

    The rest is not so important, because althought you cannot see the URL in the sharing, the link works.

    In the sharing you can see:

    -A generic image of Events Page instead of the event image. Here is the problem.

    -“Eventos”+ my domain

    with a link to the good event link: http://www.laplayademadrid.es/eventos/number/title

    You cannot see the good URL but you can go to the good URL

    -You cannot see the title or description

    I investigated more about the error:

    The problem is in Event page. Why I think it? Because when I share the link in Facebook without Addtoanny plugin ( directly in Facebook the link http://mydomain/eventos/number/title) I have the same problem.

    The problem is with sharing in Facebook, then it Doesn’t mind the plugin that I use (so I think is have not relation with Addtoanny plugin).

    This is the sharing code that gives me, when I use sharing

    https://www.facebook.com/sharer/sharer.php?src=bm&u=theURL&t=thecategory+theeventtitle&v=3

    #50721
    Franky
    Keymaster

    You need to define extra headers so facebook can use those. Eme has a settings where you can define these extra headers. See http://www.e-dynamics.be/bbpress/topic.php?id=707 as an example of the headers. You can find all headers facebook uses here: http://developers.facebook.com/docs/opengraph/property-types/

    #50722
    Anonymous
    Inactive

    Hello. Thanks. It was an interesting posible solution: I wrote my extra headers, and it works, but only to get write meta tags.

    But it doesn’t solve the sharing facebook problem.

    I wrote these:

    <meta property=”og:title” content=”#_NAME”/>

    <meta property=”og:url” content=”#_EVENTPAGEURL”/>

    <meta property=”og:image” content=”#_EVENTIMAGEURL”/>

    And the code in event page was good. I cite an example of event in my site:

    http://www.laplayademadrid.es/eventos/8499/me-acuerdo-matamolu

    In code there are these meta tags

    <meta property=”og:title” content=”Me acuerdo. Matamolu”/>

    <meta property=”og:url” content=”http://www.laplayademadrid.es/eventos/8499/me-acuerdo-matamolu”/&gt;

    <meta property=”og:image” content=”http://www.laplayademadrid.es/wp-content/uploads/matamolu2.jpg”/&gt;

    But Facebook doesn’t use the metatags for sharing

    #50723
    Franky
    Keymaster

    I think you need to add also specify the type like this:

    <meta property="og:type" content="article">

    See http://developers.facebook.com/docs/reference/opengraph/object-type/article

    #50724
    Anonymous
    Inactive

    Hello,

    OK. The problem is solved. Franky, thanks very much for your help.

    I’ll explain how it was solved…maybe somebody can use it.

    There were three points:

    1-Conflict with Jetpack.

    In the event source code, the meta tags were duplicated by another plugin: Jetpack. If you have this problem, you need remove these Jetpackā€™s open graph tags. For this you need add a little code in functions.php (be careful, and respalde it before)

    // remove jetpack open graph tags
    remove_action('wp_head','jetpack_og_tags');

    2-Facebook needed more meta tags.

    For sharing facebook you need to define all especific meta tags. You can test what you need here. Paste your link, and it reply you about meta tags problems .

    https://developers.facebook.com/tools/debug

    With this guide, can you write the tags that you need in Event Options-Other, as Franky has recomended.

    My tags were

    <meta property=”og:title” content=”#_NAME”/>

    <meta property=”og:url” content=”#_EVENTPAGEURL”/>

    <meta property=”og:image” content=”#_EVENTIMAGEURL”/>

    <meta property=”og:description” content=”#_EXCERPT” />

    Maybe there are better metatags, I dont know. If Franky or somebody want to recomend something…? But it works for me

    3-Image too small

    The Facebook gave me an error in

    https://developers.facebook.com/tools/debug

    FB said the image was too small.

    In Event Options-Other I changed Thumbnail size to “large”. And image appears now in sharing.

    Best regards!

    #50725
    Franky
    Keymaster

    Thanks for the info, glad it works.

    Although the thumbnail size setting has nothing to do with #_EVENTIMAGEURL (if it does, it’s a bug)

    .

Viewing 16 posts - 1 through 16 (of 16 total)
  • The forum ‘Tips’ is closed to new topics and replies.
Scroll to Top