Melissa Moller
Melissa Moller

Reputation: 3

Redirect upon Facebook share?

Is there a way to redirect or launch a javascript as the user shared my website on Facebook? I only know about edge.create for Facebook Like but I want it for Facebook Share. I am a beginner so help would be appreciated. Thanks!

Upvotes: 0

Views: 237

Answers (2)

HoldOffHunger
HoldOffHunger

Reputation: 20851

Yes, it's very easy to redirect upon Facebook share. But please make sure to be using the Facebook Share Dialog API, which requires registration (free) and supply AppId in API requests, and make sure not to be using the Facebook Sharer API, which does not allow this.

How do you redirect at Facebook after sharing?

Use the redirect_uri parameter.

To quote directly from the above-linked documentation...

Parameter: redirect_uri

Description: The URL to redirect to after a person clicks a button on the dialog. Required when using URL redirection.

Upvotes: 0

Juicy Scripter
Juicy Scripter

Reputation: 25918

No, none of ways of Facebook Sharing have this ability.

You may implement it on your side if you require permission pubish_stream and publishing content by application.

Upvotes: 1

Related Questions