Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback functions after the share functionality is done #12

Closed
cenjennifer opened this issue Nov 22, 2016 · 16 comments
Closed

Callback functions after the share functionality is done #12

cenjennifer opened this issue Nov 22, 2016 · 16 comments
Assignees

Comments

@cenjennifer
Copy link

Hi - I was wondering if it's possible (and if so, how) I can trigger callback functions after a social media link is triggered and complete. Thanks!

@MurhafSousli
Copy link
Owner

MurhafSousli commented Nov 23, 2016

Hi @cenjennifer, it seems possible here, however it might be not possible to determine if your user has actually shared it or cancelled.
I will add this as an output when I get the time, and it will be used like this

<share-buttons (windowClosed)="someCallbackFunction"></share-buttons>

This is nice to have, thank you

@MurhafSousli MurhafSousli self-assigned this Nov 23, 2016
@cenjennifer
Copy link
Author

Thank you @MurhafSousli

@MurhafSousli
Copy link
Owner

MurhafSousli commented Nov 25, 2016

@cenjennifer It's merged now

<share-buttons (popUpClosed)="someCallbackFun($event)"></share-buttons>
someCallbackFun(event: ShareProvider){
}

@mdd1704
Copy link

mdd1704 commented Nov 13, 2017

Is this still working in Angular 5?

@MurhafSousli
Copy link
Owner

@mdd1704 Yes but the output has changed to (closed)

@mdd1704
Copy link

mdd1704 commented Nov 13, 2017

@MurhafSousli awesome! Thanks for fast response.

@nebiyuelias1
Copy link

The closed event isn't doing anything in my case.

@MurhafSousli
Copy link
Owner

it is now called (closed)

@nebiyuelias1
Copy link

Is there any way to know if the share was successful? If someone closes the share dialog without actually sharing the closed event is fired.

@MurhafSousli
Copy link
Owner

@nebiyuelias1 No, that is not possible. there is no event that can tell if the user has actually shared or not

@nebiyuelias1
Copy link

Ok, What if I want the share count?

@vipulbuoyancy
Copy link

(closed) is not working for me. is anything changed?

@sohilmordiya
Copy link

Ok, What if I want the share count?

Hello @nebiyuelias1 @MurhafSousli

Did you find the solution to this problem?

@nebiyuelias1
Copy link

Ok, What if I want the share count?

Hello @nebiyuelias1 @MurhafSousli

Did you find the solution to this problem?

oh I'm no longer using this package, sorry!

@sohilmordiya
Copy link

@nebiyuelias1

which package you are using for linkedln successfull post count?

@nebiyuelias1
Copy link

@nebiyuelias1

which package you are using for linkedln successfull post count?

sorry I haven't used for linkedin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants