Search code examples
drupaldrupal-7drupal-modulessocial-networkingscheduler

Autopost the new node after three hours in social networks especially facebook,linkedin and twitter


  • I am using Drupal for facebook module for autoposting the node in facebook page,Linkedin integration module for autoposting in linkedin page and twitter module for autoposting in twitter page.It works perfectly.

enter image description here

  • I dont want to save the new node immediately in facebook, linkedin, twitter page. I want to post the new node after three hours.

  • Here am using scheduler module also.The user should not give the date and time in scheduler module, it have to post the node after three hours automatically.


Solution

  • I haven't really used the Scheduler module, but conceptually if the fields for the day and time in scheduler module are available, you can hide it from the user's view using hook_form_alter and then use hook_form_submit to fill the values for the date and time set to 3 hours after the publish date.