• Resolved kaephas

    (@kaephas)


    So, I get this error when I publish a post. What’s the deal? I can’t find any information about this.

    Error: Facebook Open Graph Tags cache NOT updated/purged.
    Facebook returned: An access token is required to request this resource.
    • This topic was modified 7 years ago by kaephas.
    • This topic was modified 7 years ago by kaephas.
Viewing 8 replies - 1 through 8 (of 8 total)
  • amirullahmn

    (@amirullahmn)

    Hi, i found this as solution for now..
    you need to edit the plugin file..

    1. You go edit this file – /wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/admin/class-webdados-fb-open-graph-admin.php

    2. You go the line https://graph.facebook.com/….. change the http to https
    https://graph.facebook.com/

    3. and on last of the line you put behind this line &scrape=true&method=post
    the &access_token=XXXXXXXXXXX|XXXXXXXXXXXXXXXXXX… it will look like this ‘&scrape=true&method=post&access_token=XXXXXXXXXXX|XXXXXXXXXXXXXXXXXX’;

    4. the XXX replace with &access_token=APP_ID|ACCESS_TOKEN

    5. Click Update FIle and you can try create the post.

    Thank You..

    whitehumorous

    (@whitehumorous)

    Hi,

    After trying your method, it turns out having new error.

    Error: Facebook Open Graph Tags cache NOT updated/purged.
    Facebook returned: Invalid OAuth access token signature.

    Please advise, thanks.

    There’s a solution on 2.1.4.4

    You need to create your own Facebook app and then use the fb_og_update_cache_url like this: https://gist.github.com/webdados/32f2669fbe7653520664be410e5a03b2

    112fryslannl

    (@112fryslannl)

    With adding the code in my theme functions i get a error invalid parameter. How to fix this?

    In our FAQ:

    Can I authenticate the call to Facebook, with my own app, when trying to update the cache, so I get rid of the “An access token is required to request this resource” error?
    Yes, you can. Create a Facebook app and then use the fb_og_update_cache_url filter, like in this code snippet.
    Do NOT ask us support on this. This is an advanced feature for developers only.

    In the code snippet:

    If you want the “Facebook Open Graph, Google+ and Twitter Card Tags” WordPress plugin to be able
    to clear/update the cache of your posts and pages, you’ll need to create a facebook app and add
    it’s ID and secret to the URL.
    1) Go to https://developers.facebook.com/apps/ and create a new app (or choose and existant one, any app will do)
    2) Copy the App ID and App Secret from your app dashboard
    3) Add this to your (child-)theme’s functions.php file and replace MY_APP_ID and MY_APP_SECRET with your app details

    I’ve done all that but still get the intrusive warning.

    Please update to the last version and fill in the App ID and App Secret on the settings page (Open Graph tab).

    You can follow the “Read here” link for more details.

    https://snag.gy/BkMr0p.jpg

    Done all that and it’s still showing the warnings.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Access Token required?’ is closed to new replies.