WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: JSL3 Facebook Wall Feed] Removing Comments

[Resolved] [Plugin: JSL3 Facebook Wall Feed] Removing Comments

Viewing 15 replies - 1 through 15 (of 23 total)
  • shashank.tilwalli
    Member

    @shashanktilwalli

    ignore it. I got it working.

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

    Plugin Author Takanudo
    Member

    @takanudo

    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.

    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

    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.

    Plugin Author Takanudo
    Member

    @takanudo

    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.”

    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?

    I got it. This is ‘story’ n ‘story tags’

    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”
    }

    Plugin Author Takanudo
    Member

    @takanudo

    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),”

    Plugin Author Takanudo
    Member

    @takanudo

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

    Plugin Author Takanudo
    Member

    @takanudo

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

    yes i did use exactly what u say

    Plugin Author Takanudo
    Member

    @takanudo

    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.

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

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Resolved] [Plugin: JSL3 Facebook Wall Feed] Removing Comments’ is closed to new replies.