Author Topic: Show facebook comment box to facebook users only  (Read 6140 times)

0 Members and 1 Guest are viewing this topic.

Offline kar76

  • Newbie
  • *
  • Posts: 45
    • View Profile
Show facebook comment box to facebook users only
« on: September 13, 2013, 01:37:53 AM »
I want to show facebook commentbox to facebook members only. Other than facebook user it should not appear.
I want this becoz facebook interfere with users stat and somethime slow page download speed.
Can i do it with any kind of tags {} and how?

 Please help

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: Show facebook comment box to facebook users only
« Reply #1 on: September 13, 2013, 01:50:24 AM »
Are you using the my facebook connector mod v2.0?
http://www.4homepages.de/forum/index.php?topic=27396.msg160225#msg160225
If you are then I think it should be easy because I already created a login variable. I am not sure if it carries over to all the templates or not. Have not test this...
Code: [Select]
{if fb_loggedin}
..your code for the facebook comments...
{endif fb_loggedin}
Buddy Duke
www.budduke.com

Offline kar76

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Show facebook comment box to facebook users only
« Reply #2 on: September 13, 2013, 02:01:47 AM »
Hello budduke

I am not using that mod just using comment box from facebook iframe code

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: Show facebook comment box to facebook users only
« Reply #3 on: September 14, 2013, 01:37:10 AM »
So you are wanting if a user is logged into facebook in a session and then they click on a link that comes to your site then the facebook comments show up. but if no facebook session is detected then nothing is displayed?
I think you can do it with a javascript call to see if you are logged in but not sure. If I get some free time I will see if it can be done. Facebook is pretty locked down on doing things their way and not much beyond that.
Buddy Duke
www.budduke.com

Offline kar76

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Show facebook comment box to facebook users only
« Reply #4 on: September 15, 2013, 10:53:15 AM »
Quote
So you are wanting if a user is logged into facebook in a session and then they click on a link that comes to your site then the facebook comments show up. but if no facebook session is detected then nothing is displayed?
I think you can do it with a javascript call to see if you are logged in but not sure. If I get some free time I will see if it can be done. Facebook is pretty locked down on doing things their way and not much beyond that.

Yes that exactly what i want.
Thanks in advance if you can do this. :)