Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Open Graph


hawken

Recommended Posts

I have added Open Graph meta tags to OSC and everything is great. I now discovered that you can add more Open Graph control and have your store post automatically to users facebook profiles (Ex: When a user clicks on a download link on my site, I want it to post to their facebook saying "Username just downloaded product_name at site_name").

 

I've already set up the "Download" action on Facebook Apps, and it gives me a "curl" code to add to my website, but I have no idea how or where to add that to my product_info.php file and incorporate it in to my download link on each product page.

 

Any help would be much appreciated.

 

Thanks!

 

Examples:

 

See all your Download actions:

curl 'https://graph.facebook.com/me/blocktapes:download?access_token=1111111111111111111111111'

 

Create a new Download action:

curl -F 'access_token=1111111111111111111111111' \
 -F 'mixtape=http://samples.ogp.me/230063783715431' \
	'https://graph.facebook.com/me/blocktapes:download'

 

Delete a Download action:

curl -X DELETE \
 -F 'access_token=1111111111111111111111111' \
	'https://graph.facebook.com/{'{id_from_create_call}'}'

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...