Function To Render / Parse Tweet Buttons PLEASE HELP!


#1

I make a popular wordpress plugin that uses the Tweet button, a lot of my users are recently complaining that the actually Tweet button is not showing up and that it is just a link.

After checking some of their sites out I have found that they are simply not being rendered by the API (widgets.js) do to the way WordPress is loading the API.

If there any function that can be run that will parse Tweet buttons? For example with FB you can run FB.XFBML.parse(); to parse all the like buttons on a page to make sure they are showing properly. Does Twitter have an equal counterpart?


#2

I believe you’re looking for this snippet:

twttr.widgets.load();

#3

WORKS! TKS!


#4

Facebook?


#5

Excelent!


#6

I had he same problem until I noticed the documentation examples are wrong for the javascript. For one example:

As used on my site:

Note the “https:” was missing on the js.src variable.

All the examples I looked at are missing the “https:”.

The examples would be clearer if they were not as minified.


#7

Thanks for the catch, there was indeed a couple of typos in our code examples. Just fixed this on the [node:120] documentation page.


#8

Tom, when the url starts with //, the http or https is prepended automatically by matching the protocol of the page from which it’s run. So, even though there were other typos, the examples were not missing the https by accident, it’s done this way on purpose.

Happy coding!

-Raine


#9

This works for me! Thanks


#10

In the following button code, where would I add that snippet? Thanks…

Follow @myanswersplus

#11

Nice!, I was looking for this solution…


#12

How to parse specific tweet button in a page that contains multiple buttons without loading them all?


#13

Is there any alternative for @anywhere in twitter api 1.1 version?


#14

#15