Figured it out, the documentation must need to be updated a bit still.

Change:

twttr.anywhere(anywhereApiKey, "1.0.0", onAnywhereLoad);

To:

twttr.anywhere(onAnywhereLoad);


And it should work for you.

On Apr 15, 2:47 pm, jgervin <jger...@gmail.com> wrote:
> I am trying to follow your example on inserting the twitter login
> button but nothing is showing up. Here is my code:
>
> <div id="twitter-connect-placeholder"></div>
> <script type="text/javascript">
>   var anywhereApiKey = "mykeyxxxxxxxxxx";
>   twttr.anywhere(anywhereApiKey, "1.0.0", onAnywhereLoad);
>   function onAnywhereLoad(twitter) {
>     //  Simplest use case: Append a connect button to the specified
> DOM
>     //  element.
>     twitter("#twitter-connect-placeholder").connectButton();
>
>     //  Connect buttons have a range of sizes to choose from:
>     //  small, medium, large, xlarge.  "medium" is the default size.
>     //  You can specify the size as follows:
>     twitter("#twitter-connect-placeholder").connectButton({ size:
> "large" });
>   };
> </script>
>
> This is in my head of my application.html.erb file
> <script src="http://platform.twitter.com/anywhere.js?
> id=myKeyxxxxxxxxx&v=1" type="text/javascript"></script>


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to