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 7872837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:19:55+00:00 2026-06-03T02:19:55+00:00

I am fairly new to the PHP world and facebook integration. I am trying

  • 0

I am fairly new to the PHP world and facebook integration. I am trying to connect my website to my facebook page to get the content, but a simple program seems to not working. I made sure to get the latest version of facebook code at github. Here is what I have in “test.php”:

<!DOCTYPE html>
   <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>My Pictures</title>
    </head>
   <body>
   <a> hello 1 </a>
   <?php
   echo '<a> hello 2 </a>';
   include_once 'src/facebook.php';
   echo '<a> hello 3 </a>';
   include_once 'src/config.php';
   echo '<a> hello 4 </a>';
   $facebook = new Facebook(array(
       'appId'  => FACEBOOK_APP_ID,
       'secret' => FACEBOOK_SECRET_KEY,
       'cookie' => true,
       'domain' => 'uuu.com'
   ));
   echo '<a> hello 5 </a>';
   ?>

   </body>

Just some notes, I know the path for facebook is correct, I tried to put other files, and it worked perfectly, but with this I only see “Hello 1 Hello 2”, so it looks like the facebook.php is failing at something, but I don’t what, and don’t know how to check what it is. Any help would be appreciated, thank you.

  • 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-03T02:19:56+00:00Added an answer on June 3, 2026 at 2:19 am
       $facebook = new Facebook(array(
           'appId'  => FACEBOOK_APP_ID,
           'secret' => FACEBOOK_SECRET_KEY,
           'cookie' => true,
           'domain' => 'uuu.com'
       ));
    

    do you have registered your facebook app in getting an id and the secret key?

    Be also aware, the facebook communication might not work through localhost. But to be ensure, try to enforce the error output on your webpage through following codelines, so you’re able to identify in more details why it is not working (post then the output as a follow up here, in getting a better support for solvement):

    ini_set('display_errors', '1');
    error_reporting(E_ALL);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to parse a quite large XML-sheet with PHP, but I'm fairly new
I'm fairly new to facebook development, but have experience with PHP and JavaScript. I've
I'm fairly new to PHP and have been trying to make a simple login
I am fairly new to php and mysql but I have created a small
I am fairly new to PHP, but have applied my previous knowledge of programming,
I am fairly new to the sugar but a pro at php. I am
Fairly new to PHP but in the middle of building an admin panel for
I'm fairly new to the world of versioning but would like to introduce Subversion
I am fairly new to php but I have an index file in my
I'm fairly new to PHP and have built a medium sized website using standard

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.