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

Comment obtenir Facebook Insights pour votre site WordPress

Note éditoriale : Nous percevons une commission sur les liens des partenaires sur WPBeginner. Les commissions n'affectent pas les opinions ou les évaluations de nos rédacteurs. En savoir plus sur Processus éditorial.

Plus de 10 000 nouveaux sites s’intègrent chaque jour à Facebook en utilisant l’une de leurs extensions sociales. Cependant, la plupart des sites que nous voyons ne profitent pas pleinement de ce que Facebook a à offrir. Saviez-vous que vous pouviez obtenir des informations sur Facebook pour votre site WordPress ? Ces informations comprennent des données telles que les pages les plus populaires pour le bouton « J’aime », le bouton « Envoyer », les partages organiques, la boîte de commentaires, etc. Il comprend également des informations comme qui est votre audience démographique sur Facebook, leur âge, leur sexe, leur pays, etc. Si vous ne l’avez pas fait, ne soyez pas surpris car vous n’êtes pas le seul. Nous avons vérifié certains sites des leaders de l’industrie, notamment ceux de Chris Brogan, Brian Clark, Darren Rowse, John Chow et Jeremy Schoemaker (alias Shoemoney) et aucun de leurs sites ne tirait parti de Facebook insights non plus. Dans cet article, nous allons vous afficher comment obtenir facebook insights pour votre site WordPress, afin que vous puissiez profiter pleinement de ce que facebook a à offrir.

Tout d’abord, vous devez installer et activer l’extension WordPress SEO. C’est l’une des extensions WordPress les plus téléchargées. Il y a de fortes chances que vous l’ayez déjà installé, mais si ce n’est pas le cas, nous avons des instructions détaillées sur l’installation et la configuration du plugin WordPress SEO.

Après avoir configuré l’extension correctement, votre site est maintenant prêt pour Facebook. Il vous suffit de vous rendre sur la page SEO  » Social et de cliquer sur l’onglet Facebook.

Facebook Insights Admin

Vous devez maintenant cliquer sur le bouton « Add Facebook Admin ». Vous serez alors redirigé vers le site de Facebook. Si vous n’êtes pas connecté, alors vous devez vous connecter avec le compte Facebook que vous souhaitez ajouter en tant qu’administrateur. Après cela, vous serez redirigé vers votre site WordPress, où vous verrez l’identifiant ajouté en tant qu’administrateur.

Facebook insights admin user added to WordPress SEO

La prochaine chose à faire est de vous assurer que vous utilisez la version correcte du bouton « J’aime » de Facebook. De nombreux sites utilisent la version iframe du bouton « J’aime » de Facebook. Bien que cela fonctionne, cela ne vous permettra pas d’obtenir des informations sur Facebook. Vous devez utiliser la méthode XFBML affichée dans cette publication.

Dernière étape par étape, vous devez revendiquer votre site sur Facebook. Vous devez visiter la page Facebook Insights. Sous vos pages, recherchez le bouton Ajouter un domaine.

Adding your domain to Facebook Insights

Lorsque vous cliquez sur ce bouton vert, une visionneuse apparaîtra comme l’image ci-dessous. Saisissez votre nom de domaine et veillez à le lier à « VOUS ».

Facebook Insights for your Site Setup

Maintenant, lorsque vous visitez la page facebook insights, vous verrez votre site listé sous Sites web.

Facebook Insights for Websites

Une fois que vous aurez cliqué sur votre site, vous pourrez accéder à toutes sortes d’insights. Voici un exemple d’image :

Facebook Insights Screenshot

Et voilà. Maintenant, vous pouvez facilement obtenir des informations sur Facebook pour votre site WordPress. Pour des instructions plus détaillées, vous pouvez également consulter notre tutoriel sur la façon d’ajouter des métadonnées open graph Facebook dans WordPress.

Si vous avez aimé cet article, veuillez vous abonner à notre chaîne YouTube pour des tutoriels vidéo sur WordPress. Vous pouvez également nous trouver sur Twitter et Facebook.

Divulgation : Notre contenu est soutenu par les lecteurs. Cela signifie que si vous cliquez sur certains de nos liens, nous pouvons gagner une commission. Consultez comment WPBeginner est financé, pourquoi cela compte et comment vous pouvez nous soutenir. Voici notre processus éditorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

L'ultime WordPress Toolkit

Accédez GRATUITEMENT à notre boîte à outils - une collection de produits et de ressources liés à WordPress que tous les professionnels devraient avoir !

Reader Interactions

29 commentairesLaisser une réponse

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Yazeed Zghoul says

    So where on the All in One SEO Pack Plugin can I use Facebook insight the same way explained here with Yoast plugin?

  3. Yazeed Zghoul says

    Hi, this is great but the question is can I use All in one SEO plugin and WordPress SEO plugin at the same time without having some overlapping and potential errors? please advice.

  4. Mary Jo Doig says

    I so hopeful you might be able to help me with a huge problem I created two days ago. I posted my blog story on FB, then noticed I’d omitted the photo, deleted it so I could redo the post. In deleting, every one of my 75 word press blog posts are now gone, resulting also in the loss of all those statistics on wordpress. Is there any way you know of that I could restore that vital info

    I would be profoundly grateful for your assistance. Thank you for your attention to this.

    Mary Jo Doig

    • WPBeginner Support says

      When you delete posts from WordPress, they remain in Trash for next 30 days before they are permanently deleted. Look for your deleted posts in the trash by clicking on Posts and then clicking on Trash link.

      Administrateur

  5. Tari says

    Well, poo. The plugin has a big banner that says it hasn’t been updated in the last two versions of WordPress. That’s a non-starter for me. Sure sounds cool though. I’d look forward to trying an updated version.

  6. Godwin says

    Thanks for the detailed step-by-step guide, however, I having some issues installing Facebook Insights for my site. I followed everything detailed in the posts as well as the extra explanations in the comments, and when I click on the « Get Insights » link; this is what I get:

    « Bad Request
    No admin data found at root webpage http://mysite/. Insights requires admin data at this root webpage for the specified URL transtudentworld.com »

    However the I have correctly paste the meta tag in my header.php file just two line below the tag, so I don’t know why Facebook can’t find it. I also did the XFMBL Method and have also installed the Facebook Open Graph plugin.

    Please help me out! I don’t know what else to do. Thanks in anticipation

  7. Emmeline Jane says

    Hi!

    I’ve followed all of your steps correctly but when I try to link the website through the green ‘insights for your website’ link it comes up with this:

    Bad Request
    No admin data found at root webpage Insights requires admin data at this root webpage for the specified URL

    I don’t know how to fix it! I’ve put in my own personal FB id and followed the step correctly, I don’t know what I’m doing wrong. Any ideas/tips???

    • WPBeginner Support says

      Facebook is unable to find fb:admin meta tag on your site. Generate a meta tag for your website by clicking on the green button insights for your website. Enter your domain name and your user profile. Facebook will generate a meta tag for you which you can paste in your theme’s header.php file

      Administrateur

  8. Imad Daou says

    Dear Syed,

    What would be the difference between this insight and the insight that comes with Facebook Recommendation Bar? I have followed the facebook recommendation bar post and I got already an insight through this plugin which points to the app that I have created in Facebook. Is this another insight for the home page specifically or can I skip it if I already have it through Facebook recommendation bar?

    By the way, I tried to add my website to the insight through the insight link you provided and after I have installed the Facebook Open Graph Meta Data plugin; I got this error from facebook insight:

    No admin data found at root webpage http://ccnahub.com/. Insights requires admin data at this root webpage for the specified URL ccnahub.com

    Please let me know what should I do.

    Thank You!

  9. Frank says

    In IOS the black bar that lives on the bottom of your web page is in the middle of the text and obscures your content. Thought you should know.

  10. Sarrah says

    Hi Syed, i have some interesting posts from my FB page that I’d like to repost on my WP site. Is there a way to do that other than doing screen capture?

      • Sarrah says

        Ok. So I did screen captures but have to break up the post into a few parts. But when I insert the few images, there is a line break gap between the images. How do I get rid of that gap to make the images look like one big continuous piece? Sorry to hijack this thread. Thanks!

        • Editorial Staff says

          Instead of inserting the images in a separate line. Remove all line spaces so that there is not a single space between the image codes. That should help. For future please use the contact form for « off-topic » questions.

  11. Tomas says

    Hi guys I realise a mistake in my last comment. I initially used the UID for http://graph.facebook.com/relensi which is 302475996501071. But when I got the invalid message, I tried to use the UID for my personal fb account which is 100000147197456.

    I just set up the page for a project I just started and I hope anyone here can help me out.

    Thanks in advance.

  12. Tomas says

    Hi Syed, I read this post earlier. However, After creating the facebook page for my business, I read a notification on facebook that I could view insights once the page gets 30 likes. So I’d like to ask if it was still necessary to install the Facebook Open Graph Meta Data plugin. Are there any other benefits from installing the plugin?

    Thanks in advance.

  13. bizzyLabs says

    @wpbeginner 99% chance that his themes function.php file does not include the line add_theme_support( ‘post-thumbnails’ );

    I’ve ran into that error in the past and its been fixed by adding post-thumbnail support.

  14. goteq says

    This is a great plugin, I suppose its time someone writes a plugin to get open graph type technology for the Google+ shenanigans?

  15. wpbeginner says

    @EricMcKenzie Your account ID is the admin ID. Does your theme have built-in support for post-thumbnails also known as featured image?

  16. EricMcKenzie says

    @wpbeginner I am using WP ver 3.0. The WP Settings panel only asks for 3 things. My Facebook account ID, My Site Name and default Image URL. Where am I supposed to enter my admin ID?

  17. wpbeginner says

    @EricMcKenzie That’s weird. Line 37 is simply calling for the post thumbnail feature which was added in WordPress 2.9. This is why the plugin requires you to use at least WordPress 3.0 assuming that your theme would be utilizing that feature.

    You need to specify your admin ID in the WP Settings Panel for this plugin.

  18. EricMcKenzie says

    This looks great, but when I tried it I got this message popping up where my blog should be « CloseOpenFatal error: Call to undefined function get_post_thumbnail_id() in /home/ericmckenzie/canadianaidforchernobyl.com/home/wp-content/plugins/fbogmeta.php on line 37 ». Also in Facebook Insights I get the message « Bad Request. No admin data found. » What am I missing?

    Thanks,

    Eric

Laisser une réponse

Merci d'avoir choisi de laisser un commentaire. Veuillez garder à l'esprit que tous les commentaires sont modérés selon notre politique de commentaires, et votre adresse e-mail ne sera PAS publiée. Veuillez NE PAS utiliser de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.