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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:42:05+00:00 2026-05-28T04:42:05+00:00

All, I have the following code: <?php require_once ‘facebook.php’; $app_id = 1234; $app_secret =

  • 0

All,
I have the following code:

<?php
require_once 'facebook.php';

$app_id = "1234";
$app_secret = "45678";

$facebook = new Facebook(array(
 'appId' => $app_id,
 'secret' => $app_secret,
 'cookie' => true
));

$result = $facebook->api("/me/accounts?access_token=123456");
foreach($result["data"] as $page) {
    echo $page["name"];
    $page_id = "81918";
    if($page["id"] == $page_id) {
        $page_access_token = $page["access_token"];
        break;
    }
}
$args = array(
    'access_token'  => $page_access_token,
    'message'       => "I'm a Page!"
);
$post_id = $facebook->api("/$page_id/feed","post",$args);
?>

When I execute this, I get the following message:

Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: D:\My Documents\xampp\htdocs\website/fb_ca_chain_bundle.crt CApath: none thrown in D:\My Documents\xampp\htdocs\website\base_facebook.php on line 853

I’m not sure why I’m getting this error. Can anyone help me out and let me know what I’m doing wrong? Thanks in advance!

EDIT: I’m running XAMPP on my localhost here if that helps anyone.

  • 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-05-28T04:42:05+00:00Added an answer on May 28, 2026 at 4:42 am

    Didn’t realize that I needed to get the facebook certificate. The certificate can be found here:

    https://github.com/facebook/facebook-php-sdk/blob/master/src/fb_ca_chain_bundle.crt

    Just put this in the same directory that you’re base_facebook.php file is in.

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

Sidebar

Related Questions

I have the following code: <?php require_once('IPTC.php'); $iptc = new Image_IPTC('001.jpg'); print_r($iptc); ?> And
I have the following code to zip all the files and then save it
I have the following code: // Obtain the string names of all the elements
I have the following code to assign a value to all the elements of
i have the following code def get(self): date = datetime.date.today() loc_query = Location.all() last_cursor
I have the following code in php, when i execute it: <pre> <?php $input
I've have the following (PHP) code that traverses an entire DOM document to get
I have the following PHP code to display my tag cloud. It seems if
I have the following code. PHP side: <?php print_r($_POST); print_r($_GET); die(); ?> In JavaScript:
I am using zend framework... so I have the following code in display.php: <?php

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.