@client = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['TWITTER_CONSUMER_KEY']
config.consumer_secret = ENV['TWITTER_CONSUMER_KEY_SECRET']
config.access_token = token
config.access_token_secret = token_secret
end
post_result = @client.update_with_media(content, image_file)
post_permalink = post_result.id
post_result = post_result.to_json
a part of post_result is like this
{"created_at":"Wed Feb 08 11:13:49 +0000 2017","id":829287112583286784,"id_str":"829287112583286784","text":"You must agree that the Classic Coffee without Chicory tastes thousands times better #ClassicCoffeeBrews https://t.co/fgORp5QDAy"}
Whem I am trying to access that tweet https://twitter.com/PebbleInWaters/status/829287112583286784 am getting error.
But when I went to his profile and understood the tweet id is 829287114386894848
See the post https://twitter.com/PebbleInWaters/status/829287114386894848
It’s happening for some 5 or 6 people only. That’s why I asked it’s related to any privacy settings. If u notice, the link in the content is also changed. What I got in response is https://t.co/fgORp5QDAy, but in the actual tweet its showing https://t.co/gNAw5hZpog
Please have a look @andypiper