简体   繁体   中英

drupal views facebook like button

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.

oK , well I was able to achieve the above feature by following methods:

  1. Created a cck field url-alias under a content type for which views is being created.

  2. Using views-custom-field module, I put in the facebook iframe code.

  3. in my views I included the url-alias field in hidden form and used it to form the url in the like code.

  4. I also used the fb-social module and after that all my likes button were working as expected.

您可以在这里查看我的操作方法: http//www.jerryjr.com/adding-facebook-like-button-your-drupal-site

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM