Search code examples
javascriptoauthtwitter

How application that use twitter API is communicating with twitter


I want to implement similar API as twitter and what to know how it's implemented. I didn't read much about oAuth and didn't develop twitter app.

When user click on button it execute javascript that popup new window with twitter page and user click connect or authenticate an app. How processing is passed back to application and how application know that on twitter side execution is finished and user authorize the app?


Solution

  • You need to provide callback function/url of your application where twitter returns with access token after the twitter side execution is finished.