Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Current Facebook like implementation uses an iframe and is not therefore traceable for analytics. Attached patch attempts to solve it by using HTML5 version of the like button as described on https://developers.facebook.com/docs/reference/plugins/like/.
It has not been fully tested in all browsers.
Comment | File | Size | Author |
---|---|---|---|
#3 | service_links_1897096-3.patch | 6.41 KB | nonsie |
#1 | service_links_fb_like_html5_2.patch | 6.47 KB | nonsie |
service_links_fb_like_html5.patch | 5.49 KB | nonsie |
Comments
Comment #1
nonsieUpdated patch with Google Analytics like/unlike tracking if GA is enabled.
Comment #2
glynster CreditAttribution: glynster commentedHow is this working for you? I was not able to test this as the patch failed.
Comment #3
nonsieTry this patch instead (rolled against 7.x-2.x-dev). The first one was against stable 7.x-2.1 release.
Comment #4
Simon Georges CreditAttribution: Simon Georges commentedChanging status, as there is a patch.
Comment #5
TheCrow CreditAttribution: TheCrow commentedhook_page_alter() doesn't exist on D6 and can't be easily backported, requires some rewrite before add it on the repo.
Comment #6
nonsieI don't understand the last comment. This patch is against 7.x not 6.x.
Comment #7
SeyV CreditAttribution: SeyV commentedTheCrow means that he would like to make your patch available in 6.x. This so both version do quite the same.
Comment #8
nerdoc CreditAttribution: nerdoc commentedI think this is a duplicate of issue #2344879.