I started writing blogs on blogspot and I wanted to create social networking sharing options. I used the API of Facebook and Twitter to like the article or tweet it. But what I found is that if the like or tweet counter increases only if it is done from my blog page. But sometimes, people like my article from my Facebook wall or retweet it. But these likes or retweets arent counted. Is there any way where I can get the total number?
I hope I am clear :-)
Related
I want to get the complete like list of a specific tweet, but the Twitter API only provided an API that can retrieve the 100 most recent users who liked the specific tweet. I also looked for Twitter crawlers on Github, but they all worked in a user-oriented manner, ie they can only get a list of liked tweets of a user, not a list of liking users of a specific tweet.
I also tried to crawl the list using selenium, but maybe due to my limited skill, it didn't work well. I don't want to spend a lot of time studying selenium and front-end knowledge just to accomplish a simple thing, so are there any open source codes or twitter APIs that can do this?
Yes. This has just been announced in the Twitter API v2.
Previously, you were limited to the 100 most recent Likes or Retweets with these endpoints. We heard your feedback that this was too limiting and have updated these endpoints to now return all results. To retrieve a complete list of Likes and Retweets, you can now use pagination.
Use the v2 Likes lookup endpoint: GET /2/tweets/:id/liking_users
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.
I don't exactly know, when I like a tweet in Twitter, who can see it. Is it all of my followers? Or just a fraction of them will see the posts I liked? For instance, in the case of "mention" all of my followers will see my mentions, or for "reply" all the people who follow me and the receipant of my reply will see it. But I couldn't find anything about those who can see my likes when I googled it.
In other word, if 100 people are following me, do all of them see my likes in Twitter?
If they look at the tweet in particular, everyone who has not blocked or silenced you. That can be accessed via the API too.
Your likes are public. Just add /likes to the end of your user URL.
For example, you can see all of mine at https://twitter.com/edent/likes
Anyone logged in to Twitter can see your likes unless you have blocked them.
Whether your friends see your like in their timeline depends on Twitter's algorithm.
I want to be able to track page views on my twitter account to see what locations people are viewing from.
Is there a way with twitter or google analytics?
There is no way for you to know anything about who reads your tweets. You can get some basic information about the people who follow you, or the the people that you follow. But the information you describe is not available.
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).