0

I have used Firebase to login to Twitter and generate token and secret that is needed auth in Twitter API (I think)

I have integrated Firebase with no errors and It works fine and returns both the values correctly.

Now I don't know how to implement these value and pass this token in twitter API. Please help with this (Javascript/React)

My problem is exactly this Same problem In PHP(from StackOverflow) except I used React instead of PHP and i have trouble understanding PHP code and implementing that logic to Javascript.

I also tried sending API request via Postman but I don't what fails.Postman API request for Twitter

Sanchit Bhatnagar
  • 874
  • 2
  • 10
  • 16

2 Answers2

1

You must pass headers and choose authorization.

Mike Doe
  • 16,349
  • 11
  • 65
  • 88
ctg
  • 107
  • 5
0

You can use react-twitter-login package to get all tokens automatically, or look on codebase of it:

Alexandr Tovmach
  • 3,071
  • 1
  • 14
  • 31