Facebook integration in php website

Hello… I am a PHP web developer would like know how to add facebook integration into php website??
Acutally i have integrate the facebook API into my php website but would like to know how to redirect the user to the facebook page after clicking the connect to facebook button inside my php website?? i.e. what kind of code i would have to write for the navigation to facebook page??

When the user connects, simply store the access token and any other details you receive from the Facebook API and redirect them using a header refresh.

[PHP]

<?php header("Location: http://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?>

[/PHP]
Source: http://www.php.net//manual/en/function.header.php

Sponsor our Newsletter | Privacy Policy | Terms of Service