Give user the choice to post his ad on Facebook
Hello,
I need help!
I like to give users the choice, to decide if his ad should also be posted on Facebook. To realize this, I am using a standard Facebook plugin for Wordpress, but this plugin can only auto post. So this plugin can not decide if the ad should be posted on Facebook or not….
I like to add an action: add_action( 'appthemes_after_order_summary', 'post_on_FB' );
That gives the user the possibility to click a checkbox „Also post on Facebook“ at the end of the creation process.
So in the action „appthemes_after_order_summary“ I will check if the checkbox was checked and if so, I like to do the post on Facebook.
Can anybody help me to find out, how to get the information of the listing I was just creating?
I am looking for the following fields:
- Titel
- Message
- featured_image
- price
- link to the ad
Information of the object „$listing->ID“ already working, but I don’t know how to proceed…
Can anyone help me - or even better - is there a plugin already can do this?