Tuesday, June 7, 2011

Re: [twitter-dev] follow JS Event + user Web Intent

Hi Jonathan,

Glad you're finding the Intents Events useful!

I've tried reproducing this with the user/follow intent and have events triggering as expected -- can you share some of the code you are using or the browser environment you're encountering this on?

This simplest use case:
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script type="text/javascript" charset="utf-8">
  twttr.events.bind('follow', function(event) {
    console.warn("A follow happened.");
    console.warn(event);
  });
</script>
<p><a href="http://twitter.com/intent/user?screen_name=qwerty">Follow @qwerty</a></p>

In Firebug, this triggers the bound event after the follow action is completed in the intent.

@episod - Taylor Singletary


On Tue, Jun 7, 2011 at 12:54 AM, Jonathan Strauss <jonathan@awe.sm> wrote:
Congrats on the launch of JS Events, they make Web Intents that much more powerful!

I managed to get follow event tracking working fine with the new Follow Button. But when I try to implement my own custom button UI using the user Web Intent (e.g. http://twitter.com/intent/user?screen_name=jhstrauss), the follow event doesn't seem to work the same.

Is this a known issue or is there a different approach for tracking JS Events from Web Intents rather than from Twitter-hosted buttons?

Thanks,
-jonathan

--
Jonathan Strauss, Co-Founder
http://awe.sm

We're hiring! http://awe.sm/jobs

Blog: http://jonathanhstrauss.com
Twitter: http://twitter.com/jhstrauss

--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk

--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk

No comments:

Post a Comment