I am using the Twitter API in a Swift application, I want to show a particular tweet along with all of its replies, How can I do it?
I saw many old posts that say "there is no way to retrieve the replies of a tweet", Has it changed? is there a way to do that now?
example of post
Related
I am currently looking at the Twitter API documentation but I cannot find the exact keyword for the approach from which I am trying to get the parent tweet id for a Twitter bot that I am creating.
For example, if I want to automate bookmarking a tweet (eg similar to #SaveToNotion), if I reply to that tweet tagging the bot (eg #SaveToNotion), the bot would be able to get the direct link/id of the "parent tweet" and save it somewhere. I am trying to look at the Conversation API but I don't have access or how to retrieve the conversation Id from a replied tweet
Is there a way in the Twitter API v1.1 to get the id's of all the users that replied, favorited and retweeted to a particular tweet using its id?
I've searched in older posts but I didn't find an simple way to do it.
Thanks
According to Twitter Staff Episod,
It's not possible with the API after the fact for a tweet that has more than 100 retweets. You would need to collect them in real time as they happen to collect them all. The Streaming API is the best bet for tracking such things.
So, you can only get 100 Retweets ID of a tweet through REST API. Move to Streaming API to get all the Retweets ID but you can't get the past data. You can only get data in Streaming API from present - to - future.
Is it possible to post on friend's wall using the standard feed dialog or I have to create my own dialog for this?
UPDATE:
I know that it is possible to post to a friend's wall directly using requestWithGraphPath. But I'm trying to figure out if I can use the facebook dialog for this. For example Draw Something seems to be doing just that (see screenshot below). However, I tried sending 'target_id' as well as 'to' and neither works. Does anybody know how to do that?
I found the solution. Just add "to" parameter with ID of the user you want to post to. I tested it works.
UPDATED ANSWER :
facebook annaunced that by 6.06.2013 it will not be possbile to post a friends wall via GraphAPI
https://developers.facebook.com/roadmap/#february-2013
Removing ability to post to friends walls via Graph API We will remove
the ability to post to a user's friends' walls via the Graph API.
Specifically, posts against [user_id]/feed where [user_id] is
different from the session user, or stream.publish calls where the
target_id user is different from the session user, will fail. If you
want to allow people to post to their friends' timelines, invoke the
feed dialog. Stories that include friends via user mentions tagging or
action tagging will show up on the friend’s timeline (assuming the
friend approves the tag). For more info, see this blog post.
This seems to be a very similar to iOS Development: How can I get a Facebook wall post to show in the friend's news feed?
Maybe that will help, as I think #kgutteridge has the right answer.
I am building a demo Twitter app. I have fetched the search results and timeline tweets. Is there any way to get the list of people I am following and my followers? And, can my messages be fetched too?
https://dev.twitter.com/docs/api/1/get/users/lookup
https://dev.twitter.com/docs/api/1/get/users/show
https://dev.twitter.com/docs/api/1/get/friends/ids
https://dev.twitter.com/docs/api/1/get/followers/ids
Check this links to know the parameters to get the list of followers and know the REST API link for retrieve the friends and followers.
I'm trying to get the last tweet from the people I follow using the twitter api (http://api.twitter.com/1/statuses/friends.json&screen_name=[username]), but I noticed that if the user's last tweet is a retweet, the json data does not contain a "status" element.
Using the "user timeline" api does not work either, the last tweet is the last non retweeted tweet.
Is there a way to get the real last status, even if it's a RT, through the twitter API?
This was addressed recently by the Twitter devs. You can now add a include_rts=true to your call to user_timeline. See the full discussion here: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/7a4be385ff549ed0