Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come aggiungere il nuovo plugin per le pagine Facebook in WordPress

Il like box di Facebook, noto anche come Facebook fan box, è diventato un elemento indispensabile per molti siti web. Recentemente Facebook ha sostituito questo widget con il nuovo plugin Facebook Page. In questo articolo vi mostreremo come aggiungere il plugin della pagina Facebook in WordPress.

Nota: gli utenti che hanno già implementato il vecchio like box o fan box sui loro siti WordPress saranno automaticamente spostati al nuovo plugin Page.

Che cos’è il plugin Pagina di Facebook?

Preview of a Facebook Page  plugin embed

Il plugin per le pagine di Facebook è il sostituto di quello che in precedenza era conosciuto come il riquadro “Mi piace” di Facebook. Permetteva di promuovere la pagina Facebook sul proprio sito web. Il nuovo plugin per le pagine di Facebook fa esattamente la stessa cosa.

Ha un aspetto nuovo e migliorato che ora mostra anche la foto di copertina di Facebook. È dotato di due pulsanti. Gli utenti possono mettere “Mi piace” alla vostra pagina e possono anche condividerla. È possibile mostrare agli utenti quali amici hanno già messo “Mi piace” alla vostra pagina. È inoltre possibile visualizzare i post recenti della pagina Facebook.

Esercitazione video

Subscribe to WPBeginner

Se il video non vi piace o avete bisogno di ulteriori istruzioni, continuate a leggere.

Come aggiungere il nuovo plugin della pagina Facebook in WordPress

Per prima cosa è necessario visitare il sito web del plugin di pagina di Facebook. Troverete le opzioni per configurare l’aspetto della vostra pagina Facebook.

Facebook page plugin settings

È sufficiente fornire l’URL della pagina di Facebook. Poi dovrete inserire la larghezza e l’altezza del riquadro. In alternativa, potete lasciarla vuota e Facebook cercherà di adattarla automaticamente.

È possibile mostrare la foto di copertina, i post e i volti degli amici nel plugin della pagina. Una volta soddisfatti dell’aspetto, fate clic sul pulsante Ottieni codice per continuare.

Facebook page plugin code

Facebook vi mostrerà due snippet di codice. Copiate il primo frammento di codice e incollatelo nel file header.php del vostro tema o tema figlio, subito dopo il tag <body>.

Quindi, copiate il secondo snippet di codice e incollatelo ovunque vogliate visualizzare la casella “Mi piace” della pagina. È anche possibile incollare questo frammento di codice in un widget di testo andando in Aspetto ” Widget.

Speriamo che questo articolo vi abbia aiutato ad aggiungere il plugin Pagina Facebook al vostro sito WordPress. Potreste anche dare un’occhiata al nostro articolo sui 5 modi rapidi per ottenere più Mi piace su Facebook utilizzando WordPress.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per i video tutorial su WordPress. Potete trovarci anche su Twitter e Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

42 commentiLeave a Reply

  1. This is not supporting to Mozilla browser. Supporting only on Chrome.
    Could you please help me to setup it for all the browser?

    • The page plugin should still work on FireFox, you may want to try disabling your browser addons to ensure it is not a conflict there.

      Admin

  2. Hello, when I try to use it and add through widget either text or html widget it wont go through as it strips all the data-attribute elements. Can you help me/us?

  3. Thank you wpbeginner it’s great because I don’t have to download a WP plugin to add the Facebook Plugin Page which is recommended to minimize the number of plugins to avoid conflicts and having too many potential issues…

    It looks great the Facebook Plugin Page on our website as you can see on the right sidebar:
    Keep on your amazing work!
    Xavier

  4. I’m still having issues…

    For whatever reason when I’m filling it out under

    My page preview doesn’t appear…

    So I think it’s some type of permission settings that I have messed up.

    So when I get the code and put it on my page, it doesn’t appear either. Please help!

    John

  5. Ok I got that figured out, but I don’t want to show a post – makes it too big. Your example shows where you can uncheck that, but on the page that option is not there. How do I get rid of that and just show my FB page header? Thanks

  6. So i did exactly as you said – I now have a FB box with mark zukerbergs live video just like is on the page where I copied the code…why would i get that? Obviously not what I want – so not helpful

  7. Okay, I’m stumped. I followed the directions here on a friend’s WordPress site for her travel agency, and it worked perfectly. For four days. Then it just stopped working. To test it out, I changed the URL to another friend’s facebook page and it worked. But once I changed back to the travel agency page, nada. I was hoping you might have an idea on what’s going on and/or, even better, how I can get the app to work again.

  8. Hello,
    I have been really struggling to complete this process : the Facebook developers page refuses my Facebook page URL, as well as my profile page URL…I just don’t know what to do to have it appear on my blog.
    Also, if I try, with Beaver Builder tools to add a “shortcode” from any plugin for Facebook, it never works! Nothing shows. Can you help please? Thanks!!!

    • have you found an answer to this? is it a fb setting? I am having the same issue. trying to do this to a group. not sure if i need to be a page admin for the code to work properly or what.

      • Hi Chris, yes! I wrote to the plugin company and they helped me understand the major difference between “everyone’s” Facebook page (aka, your personal page)–AND–the Facebook page you create with a different account..so until you do the steps via Facebook to create yourself a second, “professional” page (free, quite easy to do), no plugin will work. Once you do this, go back in the plugin section asking for your professional page Facebook URL (which is different), and it should show easily on your blog or site…hope it works for you too! :)

  9. Hello. I am able to get the link on my website but not able to get the pic of page or any visual. How to fix that? Please help,

  10. Thanks for the info – but for dummies like me, where do I find the page to put my FB page URL, as per your first pic. I opened the link to go to FB plugin website – but I don’t how how to get the right page up to add my url – please advise. Thanks.

  11. Thanks for this post it was just what I was looking for!

    However when using the Share button everyone keeps getting the following error:

    App Not Setup: This app is still in development mode, and you don’t have access to it. Switch to a registered test user or ask an app admin for permissions.

    Any advise? Thanks!

  12. I’ve inserted the code but for some reason only the top 1/4″ of the image shows up. It looks fine in Preview on the FB page to create the code, but not on my website. Any idea on how to fix this?

  13. Thanks for this, it works, but I cant get the Adapt to plugin container width to work, its narrow, and if I set it manually the 500 width maximum is rather narrow. Is there a way to make it wider?

  14. Question: Is this Facebook Page Plugin the same as the Facebook Page Plugin created by Cameron Jones that can be found here:

    Not sure if it matters, but I’m trying to discern which one to use. If you have any helpful suggestions or info, I’d appreciate it!
    Thanks,
    Erik

    • Hi Erik,

      My plugin and the tutorial here are the same, but also different. Following this tutorial you need to edit your theme’s templates to add the code for the Facebook plugin, however if you use my WP plugin it will write all the code for you and you can control the options with either a shortcode or a widget.

      I hope that helps you
      Cameron

  15. I have used this method to add facebook feed here at. But it displays only 5 recent posts, after 5 posts it displays a button “Find us on Facebook” is there a way I can set it to display unlimited posts or atleast increase the number of posts to display?

  16. I have found that even I don’t copy the first snippet to the header.php, the code in the second snippet still helps to show the badge.

    But I face a problem that the badge does not show all. It shows half of the left, so I have lost the share button on the right, no matter how I adjust the width at the code.

    Could you please advise how I can make it a full badge? Thanks. Mine web is diadiemdulich.com

  17. I noticed on some themes that I am running you have to add the initialization for Facebook’s Javascript SDK to your file. As well as the code Facebook gives for your plugin.

    I also experimented by minifying the javascript and it still works. However, the performance of the new plugin is lacking. I noticed it loads last compared to the I was previously using.

  18. Okay, great, this rocks! BUT how do I paste the code in my child theme .php file????? I have no idea what you are talking about (newbie blogger). Is it within my wordpress dashboard? Is it through my host and I have to head over there? I found a youtube tutorial for this, too, and they did the same thing by not explaining how to do that…?? Help would be great! Thank you!

  19. Hi, thanks for information. It is a little bit complicated for me, but I guess it is worth to try it. These social connections are so important, because how you can spread your message without them? All the best, regards. Nemira

  20. Thanks very much for the update finally updated my site with Facebook page plugin. I didn’t used the above 1st code , rather I used 2nd code and made a widget when I need to appear

  21. A function plugin (with add_action for wp_head) would be a great place for the Javascript code. This would mean that the header.php file would not have to be modified – useful for when the site owner has changed a parent theme or does not want to touch the child theme code.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.