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.
Looking in the module's code, it looks like you had the same thought. +1 for having this implemented.
One thought on how to do it from a UI standpoint would be to add a dropdown to the content type edit pages if that type has been selected to show a like box, and it has any imagefields.
Comments
Comment #1
gagarine CreditAttribution: gagarine commentedI think the drop down need to be in the settings not on each node edit (my user know any things about FB social plugins ;)).
I thinking a easy implementation.
for all
og:title
og:site_name
og:type
og:image
og:description
Provide a field but with http://drupal.org/project/token
Comment #2
beauz CreditAttribution: beauz commented+1 for this feature
Comment #3
ferdi CreditAttribution: ferdi commentedI think the cleanest way to do that is to have a separate module which fully implements the opengraphprotocol (http://opengraphprotocol.org/). I was hoping to hear from http://drupal.org/project/open_graph.
Comment #4
axel_exa CreditAttribution: axel_exa commentedCould anyone give me some advise on how to change the og metadata now (as long as there's no working module for it)? i would like to change og:title so that it submits the content of a certain cck field. thanks
Comment #5
egomac CreditAttribution: egomac commentedMy thoughts on this one would be to add this on the settings so it is completely configurable based on the current available CCK fields. Here's a rough code:
This gets all the available CCK fields in your system. This assumes that you only have one image in that CCK imagefield or else you need to do a loop and another set of conditions. You just need to add this using
Comment #6
egomac CreditAttribution: egomac commentedHere's an improved version so you can set the image source per content type:
and also limit the CCK fields to filefield type only?
Comment #7
BigMike CreditAttribution: BigMike commentedThis all sounds really great, to be able to control what Facebook pulls from the node. How/where can I implement the code in reply #6?
Thanks
Mike
Comment #8
ferdi CreditAttribution: ferdi commentedhttp://drupal.org/node/1106732
Comment #9
BigMike CreditAttribution: BigMike commentedThanks ferdi!
Comment #10
venusrising CreditAttribution: venusrising commentedIs anyone currently getting # 6 to work with FB social. Running things through FB may be taxing to the server for large node sites. #8 speaks of such and an unfinished OG module.