Support

Home Forums Social Media Buttons Add-on Facebook 'like' button not displayed

Facebook 'like' button not displayed

Posted: November 24, 2013 at 1:51 pm

Viewing 3 reply threads


Cristi Constantin

November 24, 2013 at 1:51 pm

Even though the FB button is displayed at /event-registration?ee=5, it is not displayed at /event-registration?regevent_action=register&event_id=5. Meanwhile, the tweet and Google+ button display just fine.
Using: 3.1.35.2.P EE version and 1.1.6.p social plugin version.


Sidney Harrell

November 25, 2013 at 12:04 pm

It looks like the facebook API requires the page to match what is put in the data-href attribute. Try opening up plugins/espresso-social/espresso-social.php and go to line 231:

$registration_url = $permalink . '?ee=' . $event_id;

Try replacing it with something like:

if (!empty($_GET['event_id'])) {
   $registration_url = $permalink . '?regevent_action=register&event_id=' . $event_id;
} else {
   $registration_url = $permalink . '?ee=' . $event_id;
}

and see if that fixes it.


Cristi Constantin

November 28, 2013 at 7:01 am

Sorry, I don’t mean to be rude, but I don’t really have time to test this, and I guess it should be on your side, as it is a generic failure (isn’t it?) and it is not caused by my site’s customization.
Thank you for your understanding.


Josh

  • Support Staff

November 29, 2013 at 8:06 am

Thank you for your feedback.

Viewing 3 reply threads

The support post ‘Facebook 'like' button not displayed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso