未找到"Facebook"类错误消息 [英] Class 'Facebook' not found error message

查看:129
本文介绍了未找到"Facebook"类错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Facebook应用程序复制了一些html代码,但我似乎收到以下错误

i copied some html code for a facebook application but i seem to get the following error

Fatal error: Class 'Facebook' not found in /home/content/73/7931773/html/facebook-app/index.php

好吧,我在调用api的地方进行了以下操作

Well i do the following at the place where i call the api

require 'facebook.php';

/**
 * Create an application instance on Facebook developers.
 * Replace with your own values.
 */
$facebook = new Facebook(array(
  'appId'  => '***',
  'secret' => '***',
  'cookie' => true,
));

1. facebook.php的意义是什么?我没有在Facebook开发人员库中看到它.

1 . What is the significane of facebook.php . i dont see it in the facebook developers library .

2.我如何摆脱这个错误.

2 . how do i get rid of this error .

我认为我需要包括一些内容,尽管我似乎无法弄清楚是什么?

i think i need to include something though i cant seem to figure out what ?

推荐答案

我收到此错误,发现它是由根源上的"Facebook需要CURL PHP扩展名"引起的.安装用于PHP的CURL可以修复它.

I got this error and found it was caused by "Facebook needs the CURL PHP extension" at root. Installing CURL for PHP fixed it.

这篇关于未找到"Facebook"类错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆