The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How can I add Facebook Comments?

3 posters

Go down

Solved How can I add Facebook Comments?

Post by isnanz September 12th 2011, 11:21 am

Code:

<div id="fb-root"></div>
<script>(function(d){
  var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
  js = d.createElement('script'); js.id = id; js.async = true;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<div class="fb-comments" data-href="_________" data-num-posts="5" data-width="500"></div>


i want that facebook comments is everypost...



data-href=

what can i put that code ??


isnanz
isnanz
Forumember

Male Posts : 206
Reputation : 0
Language : Indonesian
Location : Indonesia

https://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz September 12th 2011, 5:33 pm

sup
isnanz
isnanz
Forumember

Male Posts : 206
Reputation : 0
Language : Indonesian
Location : Indonesia

https://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by kirk September 12th 2011, 8:40 pm

Double posting back to back with in 24 hours is prohibited on FM Support.Next time please wait for a reply or add any additional content in your previous post via the post edit button.
thank you.




it's not going to be possible.
because you have to have the page link in the FB code.
so whatever link you add in the FB code is going to be the page the comment leads to.

Like say we had the link to this page in the comment code, whoever comments it will lead back to this thread post here on FM support from their FB page.

Example,Comment here then check your FB page it will lead back to this thread.

Code:


<div id="fb-root"></div>
<script>(function(d){
  var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
  js = d.createElement('script'); js.id = id; js.async = true;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<div class="fb-comments" data-href="http://help.forumotion.com/t96704-how-can-i-add-facebook-comments" data-num-posts="5" data-width="500"></div>

However you can incorporate the code to a post template and have a link lead back to your forum index or what ever home page you have set, Or lest say you had separate html pages, then you can always add the different link to the html page that way,
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz September 13th 2011, 11:33 am

i want facebook comments is everypost

what the variable to everypost Facebook comments.. ?

on blogspot this is

<data:post.body/>


like this

<div id="fb-root"></div>
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<div class="fb-comments" data-href="<data:post.body/>" data-num-posts="5" data-width="500"></div>


if Forumotion, what variable to swap code <data:post.body/>
isnanz
isnanz
Forumember

Male Posts : 206
Reputation : 0
Language : Indonesian
Location : Indonesia

https://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by Guest September 13th 2011, 8:02 pm

I won't even get into the page load and scrolling problems you will have if you added fb:comment plugins to every post.

I thought a goal of a discussion board was to generate content. Allowing people to reply outside the confines of your board would seem to be the last thing you would want. I would NEVER put the fb:comments plugin on a board of mine...I want people to reply on my board, not on Facebook!

But if that is truly what you want, you should just tell people to post on the wall of your Facebook page, and not even bother with a forumotion forum. It will save you a lot of time.
avatar
Guest
Guest


Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz September 14th 2011, 5:43 am

oke master dion, thanks..

but, i will know variable <data:post.body/> on forumtion

i want everypost with link like your forum

-removed

i will the title of everypost with link, your forum master Very Happy
isnanz
isnanz
Forumember

Male Posts : 206
Reputation : 0
Language : Indonesian
Location : Indonesia

https://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by Guest September 14th 2011, 7:59 am

Because you posted a screen shot of code from my board, I will not provide any assistance to you in this topic. Sorry.
avatar
Guest
Guest


Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz September 14th 2011, 8:03 am

solved thanks.
isnanz
isnanz
Forumember

Male Posts : 206
Reputation : 0
Language : Indonesian
Location : Indonesia

https://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by Nera. September 14th 2011, 8:35 am

Solved > Locked
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum