Advertisement
Guest User

Untitled

a guest
Oct 26th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1.   if ($error == "") {
  2.    $app_token = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=".$_POST['appid']."&client_secret=".$_POST['appsecret']."&grant_type=client_credentials");
  3.    if (!strstr(" ".$app_token,"access_token=")) {
  4.     $error = "It appears the application ID and secret key you entered are invalid (Could not grab app authroization token)<br/>";
  5.    }
  6.    else
  7.    {
  8.     $app_token = str_replace("access_token=","",$app_token);
  9.    }
  10.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement