Hi, i am getting callback url error, saying its not whitelisted. Pls lemme know how to solve this. Attaching image of error for reference.

Sending pictures is usually not very helpful because it means that anyone trying to help you has to manually retype any code or links from the pictures to try to reproduce the issue you’re describing.

Have you set a matching callback URL in your app settings on the app dashboard?

Thanks for reply, yes i have set the same matching url in app settings on the app dashboard.

OK. Are you completely certain that your code is sending the same URL to Twitter when it registers? Can you share (in text) a code snippet of the sequence or piece where this error occurs? What PHP Twitter library is your script using?

//Fresh authentication
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
$request_token = $connection->getRequestToken(OAUTH_CALLBACK);

The above is the code snippet. Code is sending same url which we set in dashboard n coming to PHP twitter library, we using 7+ version.

Looks like you’re using TwitterOauth from @abraham then?

Are you able to trace out any other error logs?

No Andy we getting 403 forbidden error n callback url error. Please help me fetch this. This error bugging us from few days. If we place tokens directly in code, then we getting values for single account. As we want data for multiple ids, we not getting data

Does the value of OAUTH_CALLBACK exactly match what you have in the dashboard? Have you correctly specified the protocol (http vs https)? Have you specified /callback.php on the end of the URL? I’m not exactly sure what else could be an issue here.

Can you pls show the format of url which should be placed in dashboard and in OAUTH_CALLBACK with /callback.php . I have searched different forums but i dint find exact format with callback.php

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.