Facebook Social Fans Counter

  • Hallo an alle!

    Ich habe mir ein Widget gekauft, und zwar das Social Fans Counter.
    Wollte mir meine Fans und Follower auf meiner Homepage anzeigen lassen.
    Mit Instagram und Twitter geht alles problemlos, doch Facebook passt gar nicht. Zeigt keine Fans an und findet auch die Seite nicht. Auch die Hilfefunktion dieses Widgets hilft mir nicht weiter.
    Hat jemand Erfahrungen mit diesem Widget?

    Kann gern auch paar Bilder der Hilfsseite posten, wenn notwendig.

    Würde mich über konstruktive Hilfe freuen.

    LG

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • ich versuche es nochmal.
    Ich möchte einen Fans Counter einbauen. Das Plugin habe ich und funktioniert soweit. Lediglich für Facebook klappt es nicht. Womöglich verstehe ich etwas falsch.

    Wo soll ich folgendes einfügen? in die style.php oder in eine andere Datei?
    Hoffe mir kann jemand helfen.

    [COLOR=#141823][FONT=helvetica neue]Setup the Facebook SDK for JavaScript[/FONT][/COLOR]
    [COLOR=#666666][FONT=helvetica neue]The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening [COLOR=#52BB5D][FONT=Menlo]<body>[/FONT][/COLOR] tag on each page you want to load it:[/FONT][/COLOR]
    [COLOR=#000088]<script>[/COLOR][COLOR=#000000]
    window[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]fbAsyncInit [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] [/COLOR][COLOR=#000088]function[/COLOR][COLOR=#666600]()[/COLOR][COLOR=#000000] [/COLOR][COLOR=#666600]{[/COLOR][COLOR=#000000]
    FB[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]init[/COLOR][COLOR=#666600]({[/COLOR][COLOR=#000000]
    appId [/COLOR][COLOR=#666600]:[/COLOR][COLOR=#000000] [/COLOR][COLOR=#008800]'1274421125908299'[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000]
    xfbml [/COLOR][COLOR=#666600]:[/COLOR][COLOR=#000000] [/COLOR][COLOR=#000088]true[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000]
    version [/COLOR][COLOR=#666600]:[/COLOR][COLOR=#000000] [/COLOR][COLOR=#008800]'v2.5'[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#666600]});[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#666600]};[/COLOR][COLOR=#000000]

    [/COLOR][COLOR=#666600]([/COLOR][COLOR=#000088]function[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]d[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] s[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] id[/COLOR][COLOR=#666600]){[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#000088]var[/COLOR][COLOR=#000000] js[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] fjs [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] d[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]getElementsByTagName[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]s[/COLOR][COLOR=#666600])[[/COLOR][COLOR=#006666]0[/COLOR][COLOR=#666600]];[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#000088]if[/COLOR][COLOR=#000000] [/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]d[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]getElementById[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]id[/COLOR][COLOR=#666600]))[/COLOR][COLOR=#000000] [/COLOR][COLOR=#666600]{[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#666600];}[/COLOR][COLOR=#000000]
    js [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] d[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]createElement[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]s[/COLOR][COLOR=#666600]);[/COLOR][COLOR=#000000] js[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]id [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] id[/COLOR][COLOR=#666600];[/COLOR][COLOR=#000000]
    js[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]src [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] [/COLOR][COLOR=#008800]"//connect.facebook.net/en_US/sdk.js"[/COLOR][COLOR=#666600];[/COLOR][COLOR=#000000]
    fjs[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]parentNode[/COLOR][COLOR=#666600].[/COLOR][COLOR=#000000]insertBefore[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]js[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] fjs[/COLOR][COLOR=#666600]);[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#666600]}([/COLOR][COLOR=#000000]document[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] [/COLOR][COLOR=#008800]'script'[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000] [/COLOR][COLOR=#008800]'facebook-jssdk'[/COLOR][COLOR=#666600]));[/COLOR][COLOR=#000000]
    [/COLOR][COLOR=#000088]</script>[/COLOR][COLOR=#000088]
    [/COLOR]

  • "... directly after the opening body..." wäre dann wohl die header.php

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • soweit war ich schon...
    dann dürfte es ja so richtig sein, oder etwa nicht?

    </head>


    <?php
    global $thr_sidebar_opts;
    $thr_sidebar_opts = thr_get_current_sidebar();
    $sidebar_class = $thr_sidebar_opts['use_sidebar'] ? 'thr_body_sidebar_'.$thr_sidebar_opts['use_sidebar'] : 'no_sidebar';
    $sticky_on = thr_get_option('sticky_header') ? ' sticky_on' : '';
    ?>


    <body <?php body_class($sidebar_class.$sticky_on); ?>>


    [COLOR=#ff0000]<script>[/COLOR]
    [COLOR=#ff0000] window.fbAsyncInit = function() {[/COLOR]
    [COLOR=#ff0000] FB.init({[/COLOR]
    [COLOR=#ff0000] appId : '1274421125908299',[/COLOR]
    [COLOR=#ff0000] xfbml : true,[/COLOR]
    [COLOR=#ff0000] version : 'v2.5'[/COLOR]
    [COLOR=#ff0000] });.............[/COLOR]

  • ja, directly after the opening body

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • Edit von Maxe:
    @ Eurosales, Monika hat dir doch schon geschrieben, dass wir deine gewerbliche Werbung hier nicht wollen. Bitte unterlassen, sonst müssen wir dich sperren.

    Einmal editiert, zuletzt von maxe (17. Februar 2016 um 18:57)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!