Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($error == "") {
- $app_token = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=".$_POST['appid']."&client_secret=".$_POST['appsecret']."&grant_type=client_credentials");
- if (!strstr(" ".$app_token,"access_token=")) {
- $error = "It appears the application ID and secret key you entered are invalid (Could not grab app authroization token)<br/>";
- }
- else
- {
- $app_token = str_replace("access_token=","",$app_token);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement