I have images on my website that the user needs to allow the Facebook application in order to view them. So when the user click on the image (thumbnail) it should talk him to the image page and check if he allowed the application. So how do I redirect the user to the user to that specific image page after allowing the Facebook application. something like this:
header('Location: image_page.php');
I tried this it is taking him to the allow page on facebook again. I tried to change the -1 but I got the same problem:
header("location:javascript://history.go(-1)");
The easiest way is to populate the URL of the referring page as the
redirect_uriyou specify when you call the Facebook auth dialog.