Filter the App ID used in the official Facebook Share button.
Parameters
- $fb_app_id
int Facebook App ID. Default to 249643311490 (WordPress.com's App ID).
Changelog
- Introduced in Jetpack 3.8.0
How to use this hook
Notes
You can use this filter to use your own Facebook App ID in the Facebook button included in Jetpack:
function jeherve_custom_fb_app_id() {
return '190102077773016'; // Use your own App ID here
}
add_filter( 'jetpack_sharing_facebook_app_id', 'jeherve_custom_fb_app_id' );
To create your own Facebook app, you can go here:
https://developers.facebook.com/apps/