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

Option to use FB.ui share dialog #35

Open
roborourke opened this issue Jan 13, 2016 · 3 comments
Open

Option to use FB.ui share dialog #35

roborourke opened this issue Jan 13, 2016 · 3 comments

Comments

@roborourke
Copy link

The share.php was supposed to be retired some time ago. The new way to share content is much better especially on mobile: https://developers.facebook.com/docs/sharing/reference/share-dialog

@roborourke
Copy link
Author

I'll try and find time to write this up - do let me know if it's something you'd like to include first though :)

@darklow
Copy link
Owner

darklow commented Mar 17, 2016

Just tried changing to new Share dialog.
Unfortunately it has app_id param as requirement. So this is not a direct replacement.
Probably this feature would be as a solution, in callback you'll be able to change final url if you want: #41

@darklow
Copy link
Owner

darklow commented May 13, 2016

Currently as a workaround you can use:

SocialShareKit.init({
    onBeforeOpen: function (el, provider, paramsObj) {
        if (provider === 'facebook') {
            paramsObj.networkUrl = 'https://www.facebook.com/dialog/share?app_id=' + 
                YOUR_FB_APP_ID + '&display=popup&href=' + paramsObj.shareUrlEncoded();
        }
    }
});

I will think of way to configure it automatically, perhaps if app_id is present in config, I could use new version.

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

No branches or pull requests

2 participants