• Resolved pstidsen

    (@pstidsen)


    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']));
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Hey @pstidsen,

    Our plugin will add a bunch of scripts and show elements that you do not need, even if parts could be removed to make it somewhat more effective. It looks like you have the correct call in making your custom solution here. You can simply extend the Access Token you are generating with your app using the Access Token Debugger Tool. I made a short video for you to check out here: https://a.supportally.com/v/F5jh7H

    If you have any other questions about our products or need a suite of more involved Social Media feeds, let us know as we are always happy to help.

    Best of luck setting up your solution here and have a great weekend.

    Best regards,
    Joel

    Thread Starter pstidsen

    (@pstidsen)

    Hi Joel

    What a nice hack! I didn’t came accross that during my research.. Thank you !

    My new token is set to expire in two months (https://app.screencast.com/6VtaK5iEBbtZR). How did you manage to get “Never”?

    Best Regards,
    Peter

    Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Happy to help!

    When I tested the same permissions, my AT remains as ‘Never’ expiring. This likely depends on your app setup and choises made during the app creation (the purpose of the app, e.t.c.).

    You can test:

    • Create a new app with the same setup conditions as mentioned in our Event Token guide and test extending a token with that app.
    • Follow the direction in the Meta developer site on how to create long-lived tokens

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.