There is an "out-of-the-box" way to update Twitter from Identi.ca.
But, is there any solution for update Identi.ca status from Twitter ?
If I use:
twitterfeed.com
http://api.twitter.com/1/statuses/user_timeline/llaumgui.rss&trim_user=true
I have a unsightly "llaumgui:" before each Twitt...
I have found my answer:
How To Remove Your Twitter Username From The RSS Feed
Use pipes.yahoo.com/pipes/pipe.info?_id=zncl_xDx2xGVxuG5p2IyXQ to remove your username from RSS feed
Use the twitterfeed.com service
Related
I'm using twitter API tweepy and I want to use api.list_timeline() function.
It says I must provide either a list ID or slug and owner.
How can I get these information?
The id of a twitter list can be found by looking at end end of the URL of the list on twitter web, for example in the url https://twitter.com/i/lists/1269293736644796416, 1269293736644796416 would be the id.
To implement it into your code you would simply write:
api.list_timeline(list_id=1269293736644796416)
Twitter has recently implemented an automatic way of quoting tweets. It basically extracts an url from a tweet and shows it embedded within your tweet.
My problem is: how do I 'retweet with a comment' without showing the original tweet URL via API?
Retweeting from the website makes the RT look like this .
But when I'm manually prepending a tweet url to my tweet, it looks like this .
notice the literal url.
your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.
client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')
it's ruby code with twitter gem
My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:
do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.
do a retweet, which will increase the retweet count.
Based on lfx_cool's answer, I was able to achieve it with this:
statuses/update
post('https://api.twitter.com/1.1/statuses/update.json', {
status:'Some comment', attachment_url:`https://twitter.com/${user.screen_name}/status/${id_str}`,
});
Im using twitter search api https://dev.twitter.com/docs/api/1.1/get/search/tweets to fetch popular tweets and the result contains #screenname #hashtag and links....., so how to construct api to return tweets without #screenname? and I tried to use "-filter:screenname" to exclude, but its not working.
Thanks.
Have you tried "-from:screename"?
The goal here is to be able to "tweet" a link of the format
www.example.com/page.aspx#1, and get the number of "tweets" for that link... Basically, what the out-of-the-box Twitter button does for any normal link.
Reason for this is because the page displays different content based on the ID after the #, so there is a need to count which specific item was "tweeted" and how many times.
I tried passing that URL to the Twitter service to get the count (http://urls.api.twitter.com/1/urls/count.json?url=), but the JSON object I get back only has
{"count":0,"url":"www.example.com/page.aspx/"}.
The link for the Twitter button looks like this (done in JavaScript)
var twtLink = 'http://twitter.com/intent/tweet?url='+encodeURIComponent(twtUrl)+'&counturl='+encodeURIComponent(twtUrl);
Any suggestions would be appreciated.
Thanks!
Twitter actually re-interrupts all URL's with their own custom t.co wrapper. This is good news for your use case. You can use these unique t.co links with the counter API.
If you include the attribute &include_entities=1 to the end of some Twitter REST API calls you get back expanded info including the URL's in the tweets. You will see the original URL as well as the shortened URL version. Pass the shortened URL version into the counter API.
ive been looking at the http://dev.twitter.com/pages/tweet_button#build-your-own-example , they have only show how to customize the thumbnail, but i all i need it just a 'no graphic' plain text, tweet count NUMBER. and integrate it my tweet post, so it counts the tweets for my post.
Im quite noob at this, does anyone know how to achieve this?
Thanks
Twitter does not have a public API to surface the share count for a URL. The button uses a private method that you could use but it is likely to change at anytime and will break your button if it does.
https://cdn.api.twitter.com/1/urls/count.json?url=http://google.com