When I click Login with Instagram the url is:
http://smartouch.hol.es/new/?p=202#https://api.instagram.com/oauth/authorize?client_id=e9a0958abfef4b1bbd2b87c75beb9364&redirect_uri=/success.php&scope=basic&response_type=code
I need to be only:
https://api.instagram.com/oauth/authorize?client_id=e9a0958abfef4b1bbd2b87c75beb9364&redirect_uri=/success.php&scope=basic&response_type=code
In Google Chrome the link works properly.
The code:
session_start();
if (!empty($_SESSION['userdetails']))
{
header('Location: home.php');
}
// Display the login button
$loginUrl = $instagram->getLoginUrl();
echo "<center><a class=\"button\" href=\"$loginUrl\"><img src='http://smartouch.hol.es/new/wp-content/uploads/2013/05/Untitled-12.png'></a></center>";
?>