Home php教程 php手册 让PHP显示Facebook的粉丝数量方法

让PHP显示Facebook的粉丝数量方法

Jun 06, 2016 pm 08:25 PM
facebook Number of fans

如果你的网站或者博客上有内链的Facebook页面,你或许想知道拥有多少粉丝,下面php可以帮助你查看Facebook粉丝数

如果你的网站或者博客上有内链的Facebook页面,你或许想知道拥有多少粉丝。这段代码将帮助你查看Facebook粉丝数,记住,别忘了在你的页面ID第二行添加该段代码。

复制代码 代码如下:


$page_id = "YOUR PAGE-ID";
$xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=facebook.fql.query&query=Select%20fan_count%20FROM%20page%20Where%20page_id=".$page_id."") or die ("a lot");
$fans = $xml->page->fan_count;
echo $fans;
?>

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1253
24
what is facebook what is facebook Aug 17, 2023 pm 02:05 PM

Facebook is a globally renowned social media platform that provides users with a platform to connect and communicate. Founded in 2004, it was founded by Mark Zuckerberg and others. It is an online social network where users can share information, photos and videos with and interact with friends, family and colleagues. Its influence is not limited to individual users, but also extends to businesses and news fields.

what does facebook mean what does facebook mean Jul 25, 2022 am 11:06 AM

Facebook means an American Internet company, and also refers to the social network service website developed by the company; Facebook was founded on February 4, 2004. It is a world-famous social communication application that users can use Communicate with people around the world.

How to use deep linking to backdoor Facebook APP How to use deep linking to backdoor Facebook APP May 19, 2023 pm 02:49 PM

Recently, the author discovered a deep link vulnerability in the Facebook Android APP. Using this vulnerability, the Facebook Android APP installed on the user's mobile phone can be converted into a backdoor program (Backdoor) to achieve backdooring. In addition, this vulnerability can also be used to repackage the Facebook APP and send it to specific target victims for installation and use. Let’s take a look at the author’s discovery process of this vulnerability, and how to construct it through Payload and finally transform it into a security risk in the actual production environment of Facebook APP. When I usually do public testing when discovering vulnerabilities, I will first carefully understand the application mechanism of the target system. In my last blog, I have shared how to parse Face

How to use Facebook embedded video player API in vue3 How to use Facebook embedded video player API in vue3 May 14, 2023 pm 01:52 PM

Text Facebook embedded video player API is a client function provided by the JavaScript version of FacebookSDK. You can play Facebook videos on your website. To start using it, first introduce FacebookSDK and encapsulate it into a component FacebookPlayerimport{onMounted, onBeforeUnmount} from "vue"; constprops=defineProps({id:{type:String,default:""},src:{type:String,require

You need to allow microphone calls when using Facebook on Windows 10 You need to allow microphone calls when using Facebook on Windows 10 Apr 13, 2023 pm 08:25 PM

When trying to make a video call using Facebook Messenger in the browser, sometimes it complains about a hardware access error. An error pops up saying "You need to allow microphone and camera access for video calls on your PC". This could be because you may want to enable camera and microphone access on your computer, or because of outdated drivers, conflicting devices, site permission issues, etc. In this article, we have different solutions to resolve this error. let's start! Method 1: Allow desktop apps to access your camera and microphone Step 1: Use Windows + I keys together to open Windows Settings Step 2: Click on Privacy Step 3: On the left, scroll down and click Microphone Step 4:

A list of historical prices since the birth of Bitcoin BTC historical price trend chart (Latest summary) A list of historical prices since the birth of Bitcoin BTC historical price trend chart (Latest summary) Feb 11, 2025 pm 11:36 PM

Since its creation in 2009, Bitcoin’s price has experienced several major fluctuations, rising to $69,044.77 in November 2021 and falling to $3,191.22 in December 2018. As of December 2024, the latest price has exceeded $100,204.

How many followers do you need to tweet a Douyin novel? How much does it cost to promote a novel? How many followers do you need to tweet a Douyin novel? How much does it cost to promote a novel? Mar 16, 2024 pm 01:25 PM

With the rapid popularity of the Internet and social media, Douyin has become a popular short video platform. On this platform, users can share their daily lives, talent shows, and even funny videos, attracting a large number of user participation. As time went on, more and more people began to realize the potential of promoting and selling products on TikTok, including promoting novels. By posting interesting and eye-catching content on Douyin, writers and publishers can expand the exposure of their novels, attract more readers' attention, and thus increase sales. Douyin, a brand new one, how many fans do you need for a Douyin novel tweet? So, how many fans does a Douyin novel tweet need to achieve the desired effect? There is no specific answer to this question because

What are the advantages of Facebook's canvas? What are the advantages of Facebook's canvas? Oct 16, 2023 pm 06:03 PM

The advantages of Facebook's canvas include highly customizable, powerful functions, good performance, cross-platform compatibility, rich ecosystem, etc. Detailed introduction: 1. Highly customizable, Facebook Canvas allows developers to completely customize the appearance and behavior of the application, including the interface, navigation bar, status bar, etc.; 2. Powerful functions, Facebook Canvas provides many built-in functions, such as access Facebook user data, logging in with Facebook, sharing content, etc.

See all articles