How can we find, whether user shared a node with Facebook or not?

Events happening in the community are now at Drupal community events on www.drupal.org.
reddyweb's picture

In drupal site, authenticated user need to share a node with Facebook. After successfully shared this node with Facebook need to add some user points to user profile.

So how can we found, whether user this node shared with Facebook or not? Is it possible to find weather user successfully shared or not?

Please help me in this regard. Anyhow, thanks for any advice you can offer!

Comments

userpoints module

siva_epari's picture

There are lot of modules to publish content on facebook. You need to concentrate more on userpoints module which assigns points to different actions and triggers. If you are capable of writing custom modules you can do it easily extending the userpoints module. Or else explore any of these userpoints contrib modules http://drupal.org/project/userpoints_contrib

Siva Kumar Epari

Facebook API

reddyweb's picture

Thanks siva for your information. Am not bother about user points module, because I can extend the functionality for user points at different actions.

But after sharing our content on Facebook, what the Facebook API will return to our site. Based on these return arguments only we can easily write customise the code for user points.

So what are the return arguments from Facebook API after submitting content.

Thanks

i guess can be achieved using

saitanay's picture

i guess this can be achieved using TRIGGERS AND ACTIONS. You may also use the RULES module rather than the default triggers and actions as this provides more 'Conditions'

For the trigger that it has been shared on facebook, associate the action of ' Adding userpoints' provided by userpoints module

he is something abt creating custom triggers:
http://drupal.org/node/375833

i am not much aware of the facebook api. But if it provided some call to share the link with out another confirmation popup,. use may use FLAGS module too,. to this flag u can associate the actions of 1)callin the facebook api to share the link and 2)add userpoints

--
Tanay Sai
Bangalore
skype: tanay.co.in

In this case, adding user

pflame's picture

In this case, adding user points is not the question. Addthis module provides share functionality to share with different social networking sites like facebook, twitter, etc... If I am correct, reddyweb wanted to know whether the content is really posted on any social networking site, because user can click on the share link and not post the link there. addthis button will also provide the analytics about how many shares with which social networking tool. So there must be a way to find whether the user really shared link or not with addthis API. I hope http://www.addthis.com/help/api-overview link is helpful.

AddThis API

reddyweb's picture

Thanks for sharing the post. Yes I used addthis module to share content with different social networking sites.

I will go through with this Addthis API and will check it now.

Thanks

Did you manage to find a way

t_hall's picture

Did you manage to find a way how to do this? I have a similar issue and it'll be great to find out how you solved it.