Facebook like and Twitter tweet buttons causing Cross Domain Issues

前端 未结 2 1098
Happy的楠姐
Happy的楠姐 2021-02-04 02:24

I am using both the twitter tweet button, and the facebook like button



        
2条回答
  •  忘掉有多难
    2021-02-04 03:11

    I know that question is damn old. But since that issue with Twitter is still valid, as a follow up on BK's answer, I created a custom tweet button that looks exactly like the one of Twitter's JS API but doesn't use it and still includes the share count! So, for those interested, I uploaded it to my GitHub.

    Demo: http://fiddle.jshell.net/eyecatchup/Th6P2/2/show/
    Code: https://github.com/eyecatchup/tweetbutton

提交回复
热议问题