Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter arnaudrg

    (@arnaudrg)

    I have narrowed it down to this problem: I’m unable to get my access token from the server. The following code works from localhost only:

    $app_token_url = "https://graph.facebook.com/oauth/access_token?"
    . "client_id=" . $app_id
    . "&client_secret=" . $app_secret
    . "&grant_type=client_credentials";
    $response = file_get_contents($app_token_url);
    $params = null;
    parse_str($response, $params);
    echo("This app's access token is: " . $params['access_token']);

    The openssl library is enabled.

Viewing 1 replies (of 1 total)