The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I add Facebook Comments?

View previous topic View next topic Go down

Solved How can I add Facebook Comments?

Post by isnanz on 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
Forumember

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

http://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

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

sup

isnanz
Forumember

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

http://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by kirk on 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
Forumaster

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

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz on 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
Forumember

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

http://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by Guest on 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.

Guest
Guest


Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by isnanz on 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
Forumember

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

http://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

Post by Guest on 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.

Guest
Guest


Back to top Go down

Solved Re: How can I add Facebook Comments?

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

solved thanks.

isnanz
Forumember

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

http://help.forumotion.com

Back to top Go down

Solved Re: How can I add Facebook Comments?

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

Solved > Locked

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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