Skip to content

Instantly share code, notes, and snippets.

@webdados
webdados / fb_og_update_cache_url.php
Last active March 28, 2018 19:38
Facebook Open Graph, Google+ and Twitter Card Tags with Access Token
<?php
/*
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