Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Twitter API has started giving a Sorry Page does not exist error even though it worked earlier on
    primarykey
    data
    text
    <p>I am working on a php project where I am trying to post a message onto Twitter. I have the following code to authenticate twitter, when I was working on it about 30 minutes ago it was working fine and I could successfully authenticate, get my profile pic and username without any problems. Below is the code. </p> <pre><code>function authenticate($oauth_token) { require ("../../../libraries/twitterLib/secret.php"); $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $twitterObj-&gt;setToken($oauth_token); $token = $twitterObj-&gt;getAccessToken(); $twitterObj-&gt;setToken($token-&gt;oauth_token, $token-&gt;oauth_token_secret); $_SESSION['ot'] = $token-&gt;oauth_token; $_SESSION['ots'] = $token-&gt;oauth_token_secret; $twitterInfo = $twitterObj-&gt;get_accountVerify_credentials(); echo "&lt;pre&gt;"; print_r($twitterInfo-&gt;response); echo "&lt;/pre&gt;"; $username = $twitterInfo-&gt;screen_name; $profilePic = $twitterInfo-&gt;profile_image_url; echo $this-&gt;addToDatabase($username, $profilePic, $token, $_GET['oauth_verifier']); } </code></pre> <p>Once this was working I then tried to post a message but got a <code>Sorry, that page does not exist</code> error code 34. I thought I was only having a problem with posting, but then I tried to delete my oauth token and re-authenticate and now the above code that worked half an hour ago is no longer working and I am getting the below output</p> <pre><code>Array ( [errors] =&gt; Array ( [0] =&gt; Array ( [message] =&gt; Sorry, that page does not exist [code] =&gt; 34 ) ) ) </code></pre> <p>I don't understand why I am getting this all of a sudden when it worked a moment ago and now doesn't, this part of code hasn't changed since it was working.</p> <p>Thanks for any help you can provide. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload