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:
- Retrieving Default Image All Url Profile Picture from Facebook Graph API [closed]
- Official Facebook Connect button as PNG
- Use Device Login on Smart TV / Console
- Invisible characters – ASCII
- When do I need a fb:app_id or fb:admins?
- When do I need a fb:app_id or fb:admins?
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method of `ListView`
- 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?
- WooCommerce action hooks and overriding templates
- Face recognition via facebook API
- FB is not defined javascript
- Facebook – Error parsing input URL, no data was cached, or no data was scraped
- What are App Domains in Facebook Apps?
- how to set featured image in non-wordpress
- To close or not to close php
- How can I control the Facebook like image? [closed]
- 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?
- How can I auto-add my posts to my site’s Facebook fan page?
- Is there a way to parse shortcodes in PHP?
- Experiences with compiling WordPress using Hip Hop?
- Automatically Facebook Debug Posts on Publish [closed]
- Displaying a WooCommerce product via PHP
- What exactly does “Posts page” do in WordPress?
- If your blog was an app on Facebook
- Check if a menu is empty?
- Static Frontpage Pagination – Custom loop
- Get the php template file from other theme folder
- Get FaceBook Friend Count [closed]
- Facebook OAuth, WP_Http::request() vs wp_remote_request()
- Facebook Comment Count
- Facebook sharing content problem
- How can I add “.html” to the end of a single URL on a WordPress website?
- Add point on excerpt post
- How to echo a plugin’s function into a template?
- WooCommerce – Print Processing orders [closed]
- Loop returns more items than exist?
- Featured Image and Facebook
- Access methods in plugin template
- Why isn’t my custom post type using the corresponding custom post template?
- Facebook like update status for wordpress
- Create dynamic content from one WP page to multiple other pages
- How to call a certain object/menubar in a PHP file
- Getting most popular posts based on Facebook comments count
- Facebook and Google+ sharing suddenly stopped working properly in WordPress
- Disable Jetpack Publicize for blog but keep for custom post type [closed]
- 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
- why is this content-template not showing any of my blog-entries?
- how to register a second page-template
- How not to show author’s name when sharing blogposts on Facebook?
- Facebook posts on wordpress blog
- why is markup routinely placed in functions in wordpress?
- PHP code rendered in HTML
- subscribe to wp through a Faceboo app
- Odd page behaviour after removing sidebar
- get_permalink returning first letter
- Automatic connect wordpress to facebook with featured image?
- Create Mashable Follow-like Facebook, Twitter login/connect?
- How to display a certain template element only for posts published within certain time range?
- facebook like on twenty eleven
- Custom Archive Page
- How to make a share-this window drop when reaching end of post?
- Problem with Simple Facebook Connect
- If I define a variable in header.php, how do I make it available to templates?
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- Facebook php sdk 4 getSessionFromRedirect() always null
- php “use” not working in template [closed]
- Right Facebook Open Graph Protocol into WordPress theme?
- get facebook status
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- Facebook share post dialog not showing post information
- Problem embedding a page on facebook [closed]
- Facebook Comments not working in WordPress [closed]
- Facebook Share button wont recognize embedded video [closed]
- PHP Button Custom link [closed]
- Post on facebook when I publish blog
- WordPress Site login problem with facebook, twitter and other social media
- How Facebook.com knows about duplicate pages on my site?
- get avatar from facebook graph [closed]
- Loop on a wordpress Page instead of content coming from the WP text editor
- Force Jetpack to use og:url with http on an https website
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- Twig+WordPress how to use array arguments inside a function?
- How to implement a custom sliding banner? [closed]
- Custom post type is_singular condtional not working when managing sidebar display
- Facebook video on a post appears in a strange language [closed]
- How to add Paragraph Tags in WordPress using Visual Composer?
- Bigger images when sharing a link with facebook
- How to write ‘post to facebook’ action in Uncanny Automator
- How to make a Template page to show the information of different things Shop and Product page?
- How can one use variables in a template or template part without polluting the global scope?
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- How to edit templates created in the block editor in code / template files not updating
- WordPress post-template null warnings
- AJAX Appending Data Adds Mystery “0” :(