I'm going to add a Twitter Tweet button - http://twitter.com/about/resources/tweetbutton - to some pages on my site.
The default url shortener they use is t.co
Is there a way to use bit.ly instead?
I would then be able to link it to my bit.ly account, and use bitly Analyze to evaluate the clicks on my links.
Thank you in advance for your help :)
You can use the bit.ly api to generate a shortened url, and use it with your tweet button.
Related
I'm using STTwitter for twitter Oauth in iOS. Following is the URL used to redirect to the browser...
https://api.twitter.com/oauth/authorize?oauth_callback_confirmed=true&oauth_token_secret=XXXXXXXXXXXXXXXHas0lAxA3&force_login=1&oauth_token=YYYYYYYYYYYYYY
Is it possible to redirect to the iOS Twitter application instead of redirecting to browser for performing Oauth? If so what should be the URL for redirecting?
Thanks in advance.
Use a callback URL with a custom URL scheme for your app.
See also this answer.
I have an app I want to allow the users to share specific views ( generated HTML of their data ) on Twitter or facebook.
Am looking for a logical design flow of what I'd need to do, and links to approved patterns from the social media vendors mentioned.
Thank you in advance.
You question is quite vague. Nevertheless, you cannot really post HTML code to Twitter or FB. Twitter only accepts 140 characters, if you want to "tweet". So, basically, you might want to create a shorten URL for your view on your web application and tweet the URL to the Twitter feed. When a user clicks on it, they will get to see your page. The same goes for FB as well. I hope this makes sense.
Is any way to get shrink URLs to the t.co domain from API ?. In case of to.ly domain, we use the http://to.ly/api.php?json=1&longurl= from Twitter API. what is the way to get the URLs to the t.co domain from API ???
Twitter does not provide an API for their t.co URL shortening service. It is not possible to create new t.co short URLs programmatically.
t.co is not public -- it is Twitter's own internal shortening service. A "hack" that you can use is to have a private Twitter account that you can tweet your url to programmatically, and from there you can retrieve the t.co url.
I'm working on an URL shortener that keeps track of how many times a link was clicked.
However, I'm running into a problem where both Twitter and Facebook will access the URL a few times once it is published. Twitter opens it 6 times, and Facebook only twice.
How can I know when they're the ones following through the URL so I can avoid counting their accesses?
Thanks in advance.
You can try detecting the User-Agent HTTP header if the request are made from facebook or twitter bots it should be different.
Does anyone know how the youtube is able to determine if a video is coming from youtube or twitter? For example, looking at the video stats for http://www.youtube.com/watch?v=UrbHykKUfTM , youtube is able to give the number of counts for referral from facebook.
Here is a link that gives referral from twitter:
http://www.youtube.com/watch?v=26d9HLsURPM
I look at the URL from youtube's twitter share button, it don't seem to have any URL parameters that can alert youtube of where it is coming from.
http://twitter.com/share?count=horizontal&original_referer=http://www.youtube.com/watch%3Fv%3DUrbHykKUfTM&text=Check%20this%20video%20out%20--%20X-Men:%20First%20Class%20-%20Official%20Trailer&url=http://www.youtube.com/watch%3Fv%3DUrbHykKUfTM&via=youtube
HTTP has a Referer: field; considering the URL has the same misspelling as the HTTP spec's field, that's probably where they're getting it from.