Events Made Easy › Forums › Tips › After update: Facebook share button doesn't share the single event page
Tagged: Facebook share, Facebook sharing, Images, Jetpack, meta, single event page, Update
- This topic has 15 replies, 2 voices, and was last updated 11 years, 3 months ago by Franky.
-
AuthorPosts
-
Mon 2 Sep 2013 at 11:19 #44052AnonymousInactive
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
Mon 2 Sep 2013 at 22:37 #50711FrankyKeymasterThe 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
Mon 2 Sep 2013 at 22:39 #50712FrankyKeymasterAnd did you try what I mentioned here:
Mon 2 Sep 2013 at 22:51 #50713FrankyKeymasterBtw, I just tried
<p>[addtoany url="#_EVENTPAGEURL" ]</p>
and it seems to work just fine, even without changing anything to the addtoany code.
Mon 9 Sep 2013 at 15:55 #50714AnonymousInactiveHello,
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’ );
}*/
Mon 9 Sep 2013 at 21:48 #50715FrankyKeymasterNo, don’t change the code. Like I said:
it seems to work just fine, even without changing anything to the addtoany code
Tue 10 Sep 2013 at 09:47 #50716AnonymousInactiveHello,
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/
Tue 10 Sep 2013 at 10:03 #50717FrankyKeymasterFor 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.
Wed 11 Sep 2013 at 11:09 #50718AnonymousInactiveThank you very much by your help. I wait then the new version, and I will report if it works.
Best regards
Wed 11 Sep 2013 at 13:26 #50719FrankyKeymasterNew version is released, try updating.
Wed 11 Sep 2013 at 15:50 #50720AnonymousInactiveHello, 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
Wed 11 Sep 2013 at 17:58 #50721FrankyKeymasterYou 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/
Thu 12 Sep 2013 at 00:50 #50722AnonymousInactiveHello. 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”/>
<meta property=”og:image” content=”http://www.laplayademadrid.es/wp-content/uploads/matamolu2.jpg”/>
But Facebook doesn’t use the metatags for sharing
Thu 12 Sep 2013 at 13:39 #50723FrankyKeymasterI 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
Sat 14 Sep 2013 at 17:44 #50724AnonymousInactiveHello,
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!
Sun 15 Sep 2013 at 00:21 #50725FrankyKeymasterThanks for the info, glad it works.
Although the thumbnail size setting has nothing to do with #_EVENTIMAGEURL (if it does, it’s a bug)
.
-
AuthorPosts
- The forum ‘Tips’ is closed to new topics and replies.