Show number of followers | WordPress.org

[ad_1]

Hi there,

I wish to show the number of followers on the connected facebook page and nothing more. Just a single number.

  1. Is it possible in your plugin?
  2. And if not, is the access token and other needed information stored in the database so I can make my own graph call?

I have already tried to make my own call, and the code below actually works. However, the access token is expiring every 2 hours and I was wondering whether your plugin had an access token updated and stored continuously.

$json_string = @file_get_contents('https://graph.facebook.com/v19.0/'. esc_attr($atts['page_id']) .'/?fields=followers_count&access_token='. esc_attr($atts['access_token']));

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer