Go to Facebook developers site
For example, the Like Plugin
http://developers.facebook.com/docs/reference/plugins/like/
Generate the code. You’ll get the generated code back in 2 blocks. The first is the SDK that must be added once on your page… preferably after the opening <body>
tag. Depending on your theme you can paste that directly into header.php. If you have a child theme you might do it with hooks and filters… I can’t say.
Then Facebook says to place the second part of your code wherever you’d like it to appear, so in your case directly in your page template. You might even be able get away with pasting both sections of code directly into your page template.
There are a lot of plugins in the plugin repository that deal with Facebook if you aren’t comfortable with code.
Related Posts:
- Official Facebook Connect button as PNG
- Invisible characters – ASCII
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method of `ListView`
- og:url is driving me crazy?
- FB is not defined javascript
- What are App Domains in Facebook Apps?
- how to set featured image in non-wordpress
- How does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Consuming an external API in WordPress?
- Why do templates contain so many PHP tag pairs?
- Is there a way to parse shortcodes in PHP?
- Automatically Facebook Debug Posts on Publish [closed]
- Static Frontpage Pagination – Custom loop
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- W3 Cache plugin and Facebook sharing [closed]
- On this day PHP code
- How to loop over custom fields in a page template?
- WordPress theme & site not loading after moving files
- FB – Comment Moderation Tool bug? [duplicate]
- Template tags for Buddypress
- is_page_template not working as expected
- Blank space at beginning of tag?
- Link to file in plugin directory from wordpress template?
- How to generate “og:image” meta for Facebook sharing when the image in the post is not featured?
- Password protecting content in custom template
- Facebook Like Button in Jetpack [closed]
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to Include a Loop Template File in a Plugin
- An unwanted inline style is added to my body tag
- How to properly insert a link to a template in WordPress?
- Get User’s Facebook Photos as WordPress Upload
- Hiding styles from Facebook
- Mass update excerpt
- Custom search results page not working with empty search
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Change title only in dynamic page
- How to integrate Facebook Share button without code?
- Perform internal redirect in WordPress?
- Facebook share functionality in wordpress loop
- How can I edit the content in index.php? [duplicate]
- Integrating Facebook calender to WordPress
- Open Graph in posts loop page
- Conditional Facebook Share and Like links [closed]
- Whenever I am sharing a post wordpress phrase is automatically added, can anyone help?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- PHP include is only working in certain places in my custom WP theme
- Use WordPress function in php file
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- How do I set a featured image for the homepage? [closed]
- Can’t access site after plugin activation
- Use Facebook PHP SDK from WPBook
- Integrate open graph protocol without plugin?
- Facebook share image wrong on post not on debugger [closed]
- Function returns post URLs rather than retrieving Facebook Graph API data
- Facebook Registration Tool: how to use in WordPress? [closed]
- Facebook Like – Display counter starting at Zero?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How to set a template with wp_insert_post
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- How to render a block from php template
- Override Admin menu icon
- How to see more WordPress images when posting to Facebook
- How to suppress template-parts in undescores?
- Creating custom page template from existing PHP site
- Conditional string comparison failing for basename/slug
- Template code to split a post and print a custom field?
- How to add new CSS file to new PHP file
- How to use author’s avatar as Facebook post preview image when a single post is shared
- Store SNS share value via function.php
- Single article separated into multiple pages makes Facebook Like button detect as completely separated articles
- Unprotected page appears protected when posted to Facebook (S2Member)
- open graph image being overwritten by gravatar logo?
- Multiple account integration with facebook
- Set Canonical URL to GIF for Facebook
- Polylang and template files
- Show Gutenberg facebook embed with a custom theme
- Change Jobs for WordPress templates
- How to create dynamic templates?
- Change WooCommerce template for PDF – access to custom field
- Featured image not showing on facebook share
- How to include a function in a template with template tag
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- image share on facebook missing
- Featured Image and Facebook
- FaceBook fan-block in a text-widget
- Problems With Query and/or Template Part and/or PHP
- How can i call the facebook #hashtag images on my site
- Create Mashable Follow-like Facebook, Twitter login/connect?
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- Right Facebook Open Graph Protocol into WordPress theme?
- get facebook status
- Problem embedding a page on facebook [closed]
- Facebook Share button wont recognize embedded video [closed]
- PHP Button Custom link [closed]
- Force Jetpack to use og:url with http on an https website
- How to implement a custom sliding banner? [closed]
- How to make a Template page to show the information of different things Shop and Product page?