Run prettier on all *.md files
```
prettier '{app,source}/**/**.md' --write
```
This commit is contained in:
parent
a3ceeaf0f3
commit
85a10c545b
170 changed files with 5127 additions and 2282 deletions
|
|
@ -5,11 +5,19 @@ excerpt: How to use PHP to display the number of fans of a Facebook page.
|
|||
tags:
|
||||
- php
|
||||
---
|
||||
Replace the $page_id value with your Page ID number (unless you want to show the number of fans for this site).You can find your Page ID by logging into your Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and looking at the URL.
|
||||
|
||||
For example, mine is <https://www.facebook.com/pages/edit/?id=143394365692197&sk=basic>.
|
||||
Replace the \$page_id value with your Page ID number (unless you want to show
|
||||
the number of fans for this site).You can find your Page ID by logging into your
|
||||
Facebook account, going to 'Adverts and Pages', clicking 'Edit page', and
|
||||
looking at the URL.
|
||||
|
||||
I've also wrapped the output in a number_format() function so that it properly formatted with commas etc - like where I've used it within the [Gold Event listing](http://www.horseandcountry.tv/events/paid) on the Horse & Country TV website.
|
||||
For example, mine is
|
||||
<https://www.facebook.com/pages/edit/?id=143394365692197&sk=basic>.
|
||||
|
||||
I've also wrapped the output in a number_format() function so that it properly
|
||||
formatted with commas etc - like where I've used it within the
|
||||
[Gold Event listing](http://www.horseandcountry.tv/events/paid) on the Horse &
|
||||
Country TV website.
|
||||
|
||||
```language-php
|
||||
$page_id = "143394365692197";
|
||||
|
|
@ -18,4 +26,5 @@ $fans = $xml->page->fan_count;
|
|||
print number_format($fans);
|
||||
```
|
||||
|
||||
This code was originally found at <http://wp-snippets.com/display-number-facebook-fans>.
|
||||
This code was originally found at
|
||||
<http://wp-snippets.com/display-number-facebook-fans>.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue