Hi all could you just tell what is the difference between Twitter Authenticate and Authorize
$twitterConnect = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
$twitterToken = $twitterConnect->getRequestToken();
$redirect_url = $twitterConnect->getAuthorizeURL($twitterToken, true); // authenticate
$redirect_url = $twitterConnect->getAuthorizeURL($twitterToken, false); //authorize
This means that the only requests you can make to a Twitter API must not require an authenticated user. With application-only authentication, you can perform actions such as: Pull user timelines. Access friends and followers of any account.
Depending on its permissions, an authorized app may be able to obtain information from and use your account in various ways, such as reading your Tweets, seeing who you follow, updating your profile, posting Tweets on your behalf, accessing your Direct Messages, or seeing your email address.
Two-factor authentication is an extra layer of security for your Twitter account. Instead of only entering a password to log in, you'll also enter a code or use a security key. This additional step helps make sure that you, and only you, can access your account.
With oauth/authenticate
if the user is signed into twitter.com and has previously authorized the application to access their account they will be silently redirected back to the app.
With oauth/authorize
the user will see the allow screen regardless if they have previously authorized the app.
This method differs from GET oauth / authorize in that if the user has already granted the application permission, the redirect will occur without the user having to re-approve the application.
https://dev.twitter.com/oauth/reference/get/oauth/authenticate
Note:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With