Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Include Facebook Comment plugin on the website

17.05.2018 (👁3852)


 

On Facebook you will also find a plugin, which automatically allows comments via eingertesem Facebook.

For the start of a website, this is quite a convenient way to quickly set up a comment area.

 

 

The FB plugin code consists of two parts:

1) a javascript code

2) a div report where the comments are listed

 

 

Example Facebook plugin code

 

    @*--------</ FB:Comments >--------*@

    <div id="fb-root"></div>

    <script>

        (function (d, s, id) {

            var js, fjs = d.getElementsByTagName(s)[0];

            if (d.getElementById(id)) return;

            js = d.createElement(s); js.id = id;

            js.src = 'https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v3.0';

            fjs.parentNode.insertBefore(js, fjs);

        }(document, 'script', 'facebook-jssdk'));</script>

 

    <div class="fb-comments" data-href="@sShare_URL_Ref" data-numposts="10" data-mobile="true" width="100%"></div>

    @*--------</ FB:Comments >--------*@

 

 

The settings for the Facebook Api plugin can be found under

[Lnk "https://developers.facebook.com/docs/plugins/comments/?locale=de_DE" /]

It is important that older browser versions use the settings as attributes, whereas for current new web browsers like Chrome the HTML5 attributes should be used.

 

 

Therefore here at the mobile version: data-mobile: true

<div class="fb-comments" data-href="@sShare_URL_Ref" data-numposts="10" data-mobile="true" width="100%"></div>

 

 

 

So embed a Facebook Comments plugin on the website