Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to verify whether content is shared on Facebook or not?

I was given a requirement where the user of a site shares content on Facebook and gets a coupon in return. This doesn't seem technically possible at the moment as content is shared through the share button. Is there a way I could detect if some content has been shared on Facebook or at least whether someone has clicked on it?

The user will design the interior of room and the designed image will be shared on Facebook and in return he'll get the coupon code sent to his email.

Is it possible?

like image 655
The CodeBlaster Avatar asked Jan 10 '23 11:01

The CodeBlaster


1 Answers

https://developers.facebook.com/docs/sharing/reference/share-dialog

This one will only return an object id if the user is authorized with publish_actions, else you don´t know if something is shared. The Share Button plugin can´t be used for that either.

The major problem is that it is not allowed though. You can´t incentivize likes and shares - meaning, you are not allowed to reward a user with a coupon for sharing something. You may want to check out the platform policy: https://developers.facebook.com/policy/

Remember, users need to like something because they really "like" it, and share something because they really WANT to share it.

like image 136
andyrandy Avatar answered Feb 20 '23 15:02

andyrandy