Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Step-by-step help for Facebook and Twitter Share and Redirect API WordPress

  • REFUNDED

Hi,

I would like to have two share images/buttons like this: bit.ly/1VPpN9H

A customer HAS to share the product on Facebook or Twitter, before the product is added to the Woocommerce cart, <strong>that's exactly what i want too</strong>.

I came across this for Facebook:

http://www.warriorforum.com/programming/585418-facebook-share-redirect.html

<blockquote>If you use the regular LIKE button instead of the deprecated Share button you can also use the Event.subscribe API from the FB JS SDK: developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

Using this will provide the exact functionality you're looking to have.</blockquote>

And this:

http://stackoverflow.com/questions/4691782/facebook-api-error-191

And this for Twitter:

https://twittercommunity.com/t/how-to-do-a-url-redirect-after-tweet-is-complete/16934/14

I already tried some things with the Facebook generator: https://developers.facebook.com/docs/plugins/share-button

But i'm not that into coding to figure this out correctly.

I also noticed the redirection url can be something like this: examplesite.com/?add-to-cart=ID

Do you manually have to add this button on every product with the products page ID? Or can this be automated (like the Woocommerce Add to Cart button)...

Can someone help with step-by-step explanation to get this done for Facebook and Twitter as the given example?

Thanks

Answers (0)

No answers yet.