Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:23:44+00:00 2026-06-18T11:23:44+00:00

I am trying to fix a fb login error. This code was setup before

  • 0

I am trying to fix a fb login error. This code was setup before I started working on the site. Apparently it used to work. I have looked at the fb documentation and the code looks correct. Here is the call:

$token_url = 'https://graph.facebook.com/oauth/access_token?client_id=' . $site->facebook_app_id . '&redirect_uri=' . urlencode('http://' . $site->domain . '/facebook.php?oauth_callback') . '&client_secret=' . $site->facebook_app_secret . '&code=' . get('code');

$token =  file_get_contents($token_url);

The response is:

failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
' in .../facebook.php on line 21

The output of echo $token_url is:

https://graph.facebook.com/oauth/access_token?client_id=#####&redirect_uri=http%3A%2F%2Fdev.mypdxhomes.com%2Ffacebook.php%3Foauth_callback&client_secret= ####&code=AQClZMJ1NUYIwwXUABCw3g8hVhRFavrmQfCr5b-dS6PkVqA40WNfBhQTWHe7V7-q7HUDk2OTS50KGUHEa3TMYADWgkYp688rlSnGNyeetkFYWBuFrWOdeo_wBjdErBQ7n1iNHzetqMvlMtW9KK9TEmnIxmwXEdPl-T3CkRNbGp4g2oCSvXI_ozRo6LWDJMqg6nLq54ibag7k8muhjGZ97CYs

I have looked at a lot of posts about this issue, though none have helped me resolve my issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:23:46+00:00Added an answer on June 18, 2026 at 11:23 am

    Found the solution to this here: Facebook Access Tokens – Server-Side Authentication

    Ended up using the FB PHP SDK

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to fix this error: {exception:Persistent class \Class org.myapp.model.Account does not seem
After trying a lot of ways, can you help me to fix this code.
I suddenly started getting this error when trying to connect to any of my
I've been trying to fix this problems for a few hours already, I cannot
I am trying to fix some HTML, and it is working perfect. But one
I'm trying to fix single quote bug in the code: std::string Index; connection->Open(); String^
I am trying to setup Django-allauth in my project. I am running into this
I have a site that until a few days ago was working perfectly. It's
I'm working a small drupal site, and I'm trying to pull and push changes
I am trying to use LDAP login to ezpublish but I am facing this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.