Follow button always target currently logged-in user in UIWebKit in-app browsers


#1

Rendering a follow button within a UIWebKit in-app browser (such as the ones implemented in the native iOS Twitter and Facebook apps) always results in the follow button targeting my currently logged-in user instead of the intended account. Consider the following code:

jQuery(function() { // This is only run after the Twitter widgets JavaScript has been initialized $("body").append('Follow @paulrabil'); window.twttr.widgets.load(); });

When this runs, it shows “Follow @cjvincent” (that’s me) rather than “Follow @paulrabil”. It works correctly in Mobile Safari and in Android, but if I load the web page by following a link within the Twitter or Facebook iOS apps, thereby loading it within their in-app UIWebKit implementations, I get the unexpected behavior.


#2