Automatically shortening URL for Email/Facebook sh

2019-04-08 03:48发布

问题:

I am unable to shorten the URL being shown in the AddThis email popup when using the built-in Bit.ly shortening service in AddThis.

It works with Twitter, but not Facebook and email. Is this supported?

var addthis_share = {
    url: "http://www.wrestlemaniamainevent.com/wishlist/kjhksad897dsjkhdsa98273",
    title: "View My List",
    url_transforms: {
        shorten: {
            twitter: 'bitly',
            facebook: 'bitly', // Unsupported?
            email: 'bitly' // Unsupported?
        }
    },
    shorteners: {
        bitly: {
            login: '{login}',
            apiKey: '{key}'
        }
    }
}