drupal views facebook like button
-
29-09-2019 - |
Pergunta
I tried to add facebook like button to my veiws, which lists a particular node-type. I used views custom field module to add the iframe code.
The problem is when I click like..
it shows Nikhil liked http://example.com/node/44
instead it should have shown Nikhil liked node title on example.com.
Where am I going wrong.
Solução 2
oK , well I was able to achieve the above feature by following methods:
Created a cck field url-alias under a content type for which views is being created.
Using views-custom-field module, I put in the facebook iframe code.
in my views I included the url-alias field in hidden form and used it to form the url in the like code.
I also used the fb-social module and after that all my likes button were working as expected.
Outras dicas
Use Open Graph tags:
You can check out how I did it here: http://www.jerryjr.com/adding-facebook-like-button-your-drupal-site