From: Hypolite Petovan Date: Mon, 29 Jan 2018 15:42:12 +0000 (-0500) Subject: Upgrade yet more calls with TwitterOAuth X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a9612fb358766e46b83a7df72ee9b46202d1b70;p=friendica-addons.git Upgrade yet more calls with TwitterOAuth --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 8b483c9e..bca5e7db 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -298,17 +298,17 @@ function twitter_settings(App $a, &$s) * account at Twitter. */ $connection = new TwitterOAuth($ckey, $csecret); - $request_token = $connection->url('oauth/request_token', ['oauth_callback' => 'oob']); + $result = $connection->oauth('oauth/request_token', ['oauth_callback' => 'oob']); /* * * * make some nice form */ $s .= '

' . L10n::t('At this Friendica instance the Twitter addon was enabled but you have not yet connected your account to your Twitter account. To do so click the button below to get a PIN from Twitter which you have to copy into the input box below and submit the form. Only your public posts will be posted to Twitter.') . '

'; - $s .= '' . L10n::t('Log in with Twitter') . ''; + $s .= '' . L10n::t('Log in with Twitter') . ''; $s .= '
'; $s .= ''; $s .= ''; - $s .= ''; - $s .= ''; + $s .= ''; + $s .= ''; $s .= '
'; $s .= '
'; } else {