How do I find tweets given to a web page? - twitter

I have a web page with the little Twitter API code that allows anyone to tweet about a page. Now, I want to find the tweets that these people have made. How do I do that?
Here is example:
http://www.squidoo.com/google-glass-glasses
On the left side it shows 3 tweets. A search on Twitter for that URL only brings back one real tweet to that page.

http://backtweets.com seems to do it better than twitter itself.

Related

Beginner Question: How to access the number of impressions from *other users'* tweets?

I've got a bunch of free online HTML, CSS, and JS tutorials under my belt and I want to try using them to make a browser extension. But I want to make sure that the data I want to use is actually accessible before getting started.
My goal is to make a browser extension for twitter.com that shows the number of impressions of any tweet next to the likes, retweets, and replies. My basic idea is to get the status URL of any given tweet, poll the Twitter API for the number of impressions of that tweet, store that in a variable, and then use CSS to display a little eye icon and the number stored in the impressions variable.
I know that I can find the number of impressions of all of my tweets, both through Twitter Analytics, and also just going to my profile page and clicking the little bar chart icon next to views, retweets, etc. But I'm not clear on whether I can do that for other people's tweets via Twitter's API or anything else. Can you?
For the record, I'm not too concerned about the varying definition of "impression," since it will be consistently applied across all tweets and I'm mostly interested in giving users a comparison between tweets. This is part of a research project to see how this might change how people engage with social media if they know how many views a given post has. If there's a simpler way to go about that using existing platforms, I'm open to suggestions.
Thanks for the advice!
No, impressions data is private. If you are authenticated to the Twitter API then you can use the new Twitter Developer Labs Tweets API to get private metrics like impressions, but you cannot get that for other people's Tweets. Also, the Twitter API does not support CORS, so I don't think you'll be successful trying to use it from a browser extension.

How to intergrate a single tweet into your website

Right now im building a simple html/css site for a friend. The homepage is a series of grid block divs that hold some content.
There are currently 3 block divs we have marked for social media posts. So for example, he wants his latest tweet to appear in one of those divs. His latest instagram post to appear in another and facebook in the last.
We can ignore facebook for the time being as I'm only focusing on the twitter/instagram for now.
I'm struggling with where to begin for this project. In the past I have only embedded twitter timelines, Instagram posts using widgets etc....nothing too complicated.
But for this project I will need separate stripped down posts, ie: just the plain text from his tweet inside the twitter div. The image from his Instagram post as the background image on the Instagram block etc...
I've spent the last few hours trying to get my head around oEmbed, and I can safely say I'm failing miserably.
I'm actually more confused now then before I started, so if any kind soul could give me a dummies guide to how I can approach this, that would be absolutely amazing.
Thank you!
You can acheive a single embedded tweet using an embedded timeline.
To get just one tweet, use the data-tweet-limit attribute on the embed tag, as detailed here:
https://dev.twitter.com/web/embedded-timelines/parameters
For example:
<a class="twitter-timeline" href="https://twitter.com/TwitterDev" data-widget-id="some_id" data-tweet-limit="1"></a>
According to twitter's documentation, that is the recommended way of getting tweets onto websites. From your description of the use case, I'd highly recommend just using Twitter's official widget.
If you really want to use Twitter's REST API and generate your page server side, I'd check out this stack overflow question as a starting point:
Setting up Twitter API, getting the last few Tweets
Hope that helps!

Show tweets from people I'm following on website embedded Twitter feed

I've had a look at the following link - https://dev.twitter.com/docs/embedded-timelines within Twitter. It says you can display your timeline, favorites, lists but not the tweets from the people you're following.
Essentially when you first log into Twitter, I want to show those tweets - the tweets from people I'm following on my website.
Or is there a way to automatically add people we're following to a list? So I can then display that list?
Can it be done? If so, how?
I don't think you can achieve this with embedded timelines but you can achieve it by using the REST API. The link below gives details on how to do this. Your request will then return a json string of the latest tweets of people you follow. You can format this then display it
https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline

How to avoid tracking 'clicks' from url shorteners themselves?

Im using google shorten url to short my link , i used this link to post on twitter using my php application.
To track the source of that page link, iam doing visit count update on my php page when some clicked that link. when i passing my url to google shorten api it automatically ping my site so my visit count increasing, and twitter is too doing that same. Because of this i got 2 to 5 clicks count on db. Can anyone help me how to handle this issue? I would like track how many clicks done by user not from this both google shorten api and twitter shorten url api
The easy / lazy way is to do further testing and see if a consistent number of hits come from Google and Twitter. If so, you just pre-adjust the count to subtract that number of hits for every shortened URL.
The more rigorous way is to detect User-Agent headers for each page request. If it's from Google or Twitter, ignore it. If it's from anything else, increment your clicks count.
We had similar kind of problem. When the hit is being made by google, then in the request header it sets From: googlebot(at)googlebot.com. We used this header information and implemented custom logic to exclude hits from google-bots.

Twitter messages on website with votes

I am not sure how it is done, therefore my questions below:
I would like to ask folks on Twitter for a suggestion on a particular topic. Can I tell them to use certain hashtag and have all comments with that hashtag posted on my site?
Do I just pick a hashtag or does it need to be created somehow?
Can I have users on my site rate those suggestions? In that case, would I need to somehow grab twitter message and store locally?
Just trying to understand the process in order to implement it.
Hashtags don't have to be created - just use it in tweet.
In order to get all tweets with particular hashtag, use search API: https://dev.twitter.com/docs/api/1/get/search and search for this hashtag. You should save all relevant tweets (twitter search is not reliable on old tweets).

Resources