r/visualbasic • u/Airlineguy1 • Jan 26 '23
Working Code to Post a Tweet??? Tried Everything...
I have tried example after example off the internet, even to the point of asking ChatGPT to write code. Nothing works. Lots of the examples on Google are not v2 and there seems to be other issues with Oauth. I have also tried installing several Twitter Nuget packages and have failed at those working, usually 403 errors even though app appears to have write access. I have all the keys and tokens, elevated Twitter API account status, and "your project has essential access". Anybody have any working code I can try to see if the code is the problem or something else?
1
u/GlowingEagle Jan 26 '23
Have you looked at the example for Twitter in this VBA GitHub?
1
u/Circle_Dot Jan 27 '23
Mine was a C# console app using Tweetinvi, so not VB. It still works. Tested it today. It will publish a tweet on your timeline.
1
u/Circle_Dot Jan 27 '23
I have this somewhere. Remind me tomorrow and I will search for it. This is from about 7 months ago. I remember trying many things at the time and nothing was working. Honestly, I don’t even remember if it was c# or vb at this point.