B4J Question Twitter with B4J

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

Just wondering if anyone has had any luck with Twitter working with B4J ?

I did try: https://www.b4x.com/android/forum/threads/jtwitter-class.43987/#content

However when I run it, it asked for a Twitter PIN but don't think they now offer that as I couldn't work out where to get that PIN from.

I am trying to do this with an non-UI app.

Anyone had any luck posting a tweet to Twitter in B4J with the current API ?
 

DonManfred

Expert
Licensed User
Longtime User
with the current API ?
What about pure B4J?
B4X:
Sub Button1_Click
    Dim share As Intent
    share.Initialize(share.ACTION_VIEW,"https://twitter.com/intent/tweet?text=B4X - Android, iOS, desktop, server and IoT programming tools&url=https://www.b4x.com")
    StartActivity(share)
End Sub

Honestly i did not tried with B4J, just with B4A. But it is worth a try...
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
What about pure B4J?
B4X:
Sub Button1_Click
    Dim share As Intent
    share.Initialize(share.ACTION_VIEW,"https://twitter.com/intent/tweet?text=B4X - Android, iOS, desktop, server and IoT programming tools&url=https://www.b4x.com")
    StartActivity(share)
End Sub
Honestly i did not tried with B4J, just with B4A. But it is worth a try...
I had a look at that.

Problem is that I am creating an non-UI app. I did copy that URL into a browser but requires you to be signed in and you need to press the submit (tweet) button before it will post it. With a non-UI app you can't sign in or press that tweet button.
 
Upvote 0
Top