Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • pedro_fama Friend
    #197722

    Hi,

    I have a problem with JA Social Feed Plugin, only with Instagram. I can import items from # and POPULAR, but not from @ (specific user). When i click on verify, the rss feed appears correctly, but nothing is imported when i click on Cron.

    Can anybody help me please?

    Thanh Nguyen Viet Friend
    #535010

    I have just checked instagram service, it might have just modified rss feed for user feed which causes this issue.

    To get this fixed, please try solution below:

    – Open the file:
    plugins/system/jasocial_feed/jasocial_feed.php

    – Find and replace code snippet:
    [PHP]$item = @$x->item($i);
    if(!is_object($item)) {
    break;
    }

    $it = new stdClass();
    $it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;[/PHP]

    – And replace it with:

    [PHP]$item = @$x->item($i);
    if(!is_object($item)) {
    continue;
    }

    $it = new stdClass();
    if($item->getElementsByTagName(‘image’)->item(0)) {
    $it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
    } else {
    $images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
    $it->image = $images[0];
    }[/PHP]

    pedro_fama Friend
    #535105

    Hi, now it works, but with another problem. The plugin get the profile image in all posts, not the image of the post 🙂

    Can you help me please? Thank you 🙂

    pedro_fama Friend
    #535114

    I changed the code:
    [PHP]$item = @$x->item($i);
    if(!is_object($item)) {
    continue;
    }

    $it = new stdClass();
    if($item->getElementsByTagName(‘image’)->item(0)) {
    $it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
    } else {
    $images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
    $it->image = $images[0];
    } [/PHP]

    to

    [PHP]$item = @$x->item($i);
    if(!is_object($item)) {
    continue;
    }

    $it = new stdClass();
    if($item->getElementsByTagName(‘image’)->item(0)) {
    $it->image = @$item->getElementsByTagName(‘image’)->item(0)->getElementsByTagName(‘url’)->item(0)->childNodes->item(0)->nodeValue;
    } else {
    $images = $this->parseImageFromContent($item->getElementsByTagName(‘description’)->item(0)->childNodes->item(0)->nodeValue);
    $it->image = isset($images[1]) ? $images[1] : $images[0];
    } [/PHP]

    And now the plugin works, but only if i chose Save Image. If i chose no, it doesn’t work

    Thanh Nguyen Viet Friend
    #535236

    I just checked your pinterest profiles, they all disable “Save image” option, but the plugin still gets image from external site properly, is that what you mean?

    pedro_fama Friend
    #535326

    Sorry, my mistake, the plugin work perfectly now, thank you.

    pedro_fama Friend
    #536233

    Hey Dead Code, can you help me again please.

    Now i have a problem with Twitter.

    The plugin imports correctly the tweets, but always with the same image (profile image of the user), not the image of the post. Can you help me please?

    Thank you.

    Thanh Nguyen Viet Friend
    #536346

    Hi Pedro,

    To resolve this issue, you need to edit Twitter profiles to update Minimum Image width and Minimum Image Height settings to a lager image size of twitter avatar (73×73),

    I see your site currently sets this with 1×1. Since JA Social Feed plugin gets first image from page that has larger size than image size that is configured in profile, so all items will get user avatar image now (because avatar is the first image in page).

    E.g: https://twitter.com/NereidaOficial/status/469584268721934336/photo/1

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum