Automatically shortening URL for Email/Facebook shares with Bitly through AddThis API

我怕爱的太早我们不能终老 提交于 2019-12-06 00:30:26

问题


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}'
        }
    }
}

来源:https://stackoverflow.com/questions/27148711/automatically-shortening-url-for-email-facebook-shares-with-bitly-through-addthi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!