WordPress.org

Ready to get started?Download WordPress

Forums

JSL3 Facebook Wall Feed
[resolved] Removing Comments (24 posts)

  1. shashank.tilwalli
    Member
    Posted 1 year ago #

    Hello experts,

    I need to show just the facebook feeds on my home page without any status bar, or comments section. I was able to remove the status bar, but unable to remove the comments.

    Any help??
    -Shahsank

    http://wordpress.org/extend/plugins/jsl3-facebook-wall-feed/

  2. shashank.tilwalli
    Member
    Posted 1 year ago #

    ignore it. I got it working.

  3. timchu
    Member
    Posted 1 year ago #

    Hi Shashank, can u share how u manage to remove comments? I have the same problem. Many tks
    Tim

  4. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    To remove comments, make sure "Show all post comments" is unchecked on the settings page for the plugin.

    To remove the comment link, do the following:

    1. Open '/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php'
    2. Lines 634 through 636 are the following:
      '        <span class="fb_comment">' .
      '          <a href="' . $comment_link . '"' . $target . '>' . __( 'Comment', JSL3_FWF_TEXT_DOMAIN ) . '</a>' .
      '        </span>' .
    3. Remove lines 634 through 636.
    4. Save the file.
  5. timchu
    Member
    Posted 1 year ago #

    thank you for your quick reply, if you can check on my website sidebar where i put your plugin. i dont think this are the comments, it is a post but is twice with the same photo. hope you know what i mean.
    http://www.pcks1971.com

  6. timchu
    Member
    Posted 1 year ago #

    this are part of the post on facebook, show on top of the photo and again the same below the photo. but in different font structure.

  7. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    I think I understand the problem. It looks like two properties in the feed are repeating the same data. Can you help me find out what they are?

    1. Go to http://developers.facebook.com/tools/explorer.
    2. Enter your access token.
    3. In the field with the arrow, enter “1776232101/feed” after it.
    4. Click submit.

    In the results, look for the properties that are being repeated and let me know what they are. For example, it could be "story" and "description."

  8. timchu
    Member
    Posted 1 year ago #

    I try to enter my access token is a very long number n words, is that right?
    And I tried to click get access token then I hv to select permission boxes. Ie user data permission, friends data permission and so on.....
    Which one shall I select?

  9. timchu
    Member
    Posted 1 year ago #

    I got it. This is 'story' n 'story tags'

  10. timchu
    Member
    Posted 1 year ago #

    This is what I got

    "data": [
    {
    "id": "1776232101_3003925035254",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan and Way Hong Lee are now friends.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "18": [
    {
    "id": "100005759195065",
    "name": "Way Hong Lee",
    "offset": 18,
    "length": 12,
    "type": "user"
    }
    ]
    },
    "actions": [
    {
    "name": "Comment",
    "link": "https://www.facebook.com/1776232101/posts/3003925035254"
    }
    ],
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-24T08:26:39+0000",
    "updated_time": "2013-04-24T08:26:39+0000",
    "comments": {
    "count": 0
    }
    },
    {
    "id": "1776232101_3000874518993",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan and Rebecca Lau are now friends.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "18": [
    {
    "id": "1584352499",
    "name": "Rebecca Lau",
    "offset": 18,
    "length": 11,
    "type": "user"
    }
    ]
    },
    "actions": [
    {
    "name": "Comment",
    "link": "https://www.facebook.com/1776232101/posts/3000874518993"
    }
    ],
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-22T22:54:07+0000",
    "updated_time": "2013-04-22T22:54:07+0000",
    "comments": {
    "count": 0
    }
    },
    {
    "id": "1776232101_2983394602006",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan is now friends with Tim Chu and 陳銀英.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "34": [
    {
    "id": "1822991770",
    "name": "Tim Chu",
    "offset": 34,
    "length": 7,
    "type": "user"
    }
    ],
    "46": [
    {
    "id": "100005734200450",
    "name": "陳銀英",
    "offset": 46,
    "length": 3,
    "type": "user"
    }
    ]
    },
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-15T16:02:48+0000",
    "updated_time": "2013-04-15T16:02:48+0000",
    "comments": {
    "count": 0
    }
    }
    ],
    "paging": {
    "previous": "https://graph.facebook.com/1776232101/feed?limit=25&since=1366791999",
    "next": "https://graph.facebook.com/1776232101/feed?limit=25&until=1366041767"
    }

  11. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    I need to find out which properties have the same value repeated. For example, find each property that has a value that begins with "4月21, 天陰, 濕地蝶不多, 卻給我拍到一隻綠灰蝶-Green flash (Artipe eryx),"

  12. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    Did you use the access token that shows up on the settings page for the plugin on your WordPress site?

  13. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    Also, instead of using "1776232101/feed" try "1776232101/feed?limit=100"

  14. timchu
    Member
    Posted 1 year ago #

    yes i did use exactly what u say

  15. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    I think the properties that are repeating are "message" and "caption." Here are the instructions for removing the caption.

    1. Open '/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php'
    2. Lines 599 through 601 are the following:
      if ( isset( $fb_feed[ $i ][ 'caption' ] ) )
      $result .=
      '          <p class="fb_cap">' . htmlentities( $fb_feed[ $i ][ 'caption' ], ENT_QUOTES, 'UTF-8' ) . '</p>';
    3. Remove lines 599 through 601.
    4. Save the file.
  16. timchu
    Member
    Posted 1 year ago #

    "4月21, 天陰, 濕地蝶不多, 卻給我拍到一隻綠灰蝶-Green flash (Artipe eryx)," all this was post on "box" "what's in your mind?" before "add photos/video"

  17. timchu
    Member
    Posted 1 year ago #

    and the photo i got facebook are from albums

  18. timchu
    Member
    Posted 1 year ago #

    This is what I got is I put 1176232101/feed?limit=100

    {
    "data": [
    {
    "id": "1776232101_3003925035254",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan and Way Hong Lee are now friends.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "18": [
    {
    "id": "100005759195065",
    "name": "Way Hong Lee",
    "offset": 18,
    "length": 12,
    "type": "user"
    }
    ]
    },
    "actions": [
    {
    "name": "Comment",
    "link": "https://www.facebook.com/1776232101/posts/3003925035254"
    }
    ],
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-24T08:26:39+0000",
    "updated_time": "2013-04-24T08:26:39+0000",
    "comments": {
    "count": 0
    }
    },
    {
    "id": "1776232101_3000874518993",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan and Rebecca Lau are now friends.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "18": [
    {
    "id": "1584352499",
    "name": "Rebecca Lau",
    "offset": 18,
    "length": 11,
    "type": "user"
    }
    ]
    },
    "actions": [
    {
    "name": "Comment",
    "link": "https://www.facebook.com/1776232101/posts/3000874518993"
    }
    ],
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-22T22:54:07+0000",
    "updated_time": "2013-04-22T22:54:07+0000",
    "comments": {
    "count": 0
    }
    },
    {
    "id": "1776232101_2983394602006",
    "from": {
    "name": "Meng-chak Wan",
    "id": "1776232101"
    },
    "story": "Meng-chak Wan is now friends with Tim Chu and 陳銀英.",
    "story_tags": {
    "0": [
    {
    "id": "1776232101",
    "name": "Meng-chak Wan",
    "offset": 0,
    "length": 13,
    "type": "user"
    }
    ],
    "34": [
    {
    "id": "1822991770",
    "name": "Tim Chu",
    "offset": 34,
    "length": 7,
    "type": "user"
    }
    ],
    "46": [
    {
    "id": "100005734200450",
    "name": "陳銀英",
    "offset": 46,
    "length": 3,
    "type": "user"
    }
    ]
    },
    "privacy": {
    "value": ""
    },
    "type": "status",
    "status_type": "approved_friend",
    "created_time": "2013-04-15T16:02:48+0000",
    "updated_time": "2013-04-15T16:02:48+0000",
    "comments": {
    "count": 0
    }
    }
    ],
    "paging": {
    "previous": "https://graph.facebook.com/1776232101/feed?limit=25&since=1366791999",
    "next": "https://graph.facebook.com/1776232101/feed?limit=25&until=1366041767"
    }
    }

  19. timchu
    Member
    Posted 1 year ago #

    i check the facebook post all this is from album "say something about the album" short post on top of eath album. hope this information can help. many tks for your time

  20. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried removing the caption like I suggested in my last post?

  21. timchu
    Member
    Posted 1 year ago #

    do you mean this post ? i have not try because this is remove comments

    To remove comments, make sure "Show all post comments" is unchecked on the settings page for the plugin.

    To remove the comment link, do the following:

    Open '/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php'
    Lines 634 through 636 are the following:.....

  22. Takanudo
    Member
    Plugin Author

    Posted 1 year ago #

    I mean this post:

    I think the properties that are repeating are "message" and "caption." Here are the instructions for removing the caption.

    1. Open '/wp-content/plugins/jsl3-facebook-wall-feed/php/class-uki-facebook-wall-feed.php'
    2. Lines 599 through 601 are the following:
      if ( isset( $fb_feed[ $i ][ 'caption' ] ) )
      $result .=
      '          <p class="fb_cap">' . htmlentities( $fb_feed[ $i ][ 'caption' ], ENT_QUOTES, 'UTF-8' ) . '</p>';
    3. Remove lines 599 through 601.
    4. Save the file.
  23. timchu
    Member
    Posted 1 year ago #

    ok i will try it now and let u know straightaway

  24. timchu
    Member
    Posted 1 year ago #

    yes it works, many tks for your great help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.