Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • pedro_fama Friend
    #202295

    Hi, i have a problem with JA Social Feed Plugin.

    The plugin correctly imports the feeds, but in the Facebook posts, imports a strange code when the post has external links.

    When i click, it goes to Facebook and there is an error: There’s is a problem with this link (something like that).

    I want to know if it’s possible to link directly to the external link, without going through Facebook.

    I’m waiting your help, thank you 😉

    Thanh Nguyen Viet Friend
    #553884

    Hello,

    To resolve this issue, please open the file:
    plugins/system/jasocial_feed/jasocial_feed.php

    Find the code snippet:
    [PHP]$pattern = ‘/href=”/l.php?u=(http[^'”&]+)[^'”]*”/i’;[/PHP]

    And replace it with:
    [PHP]$pattern = ‘#href=”(?:http://l.facebook.com)?/l.php?u=(http[^'”&]+)[^'”]*”#i’;[/PHP]

    Once done, re-import your feed and test again.

    pedro_fama Friend
    #553966

    <em>@Dead Code 451347 wrote:</em><blockquote>Hello,

    To resolve this issue, please open the file:
    plugins/system/jasocial_feed/jasocial_feed.php

    Find the code snippet:
    [PHP]$pattern = ‘/href=”/l.php?u=(http[^'”&]+)[^'”]*”/i’;[/PHP]

    And replace it with:
    [PHP]$pattern = ‘#href=”(?:http://l.facebook.com)?/l.php?u=(http[^'”&]+)[^'”]*”#i’;[/PHP]

    Once done, re-import your feed and test again.</blockquote>

    It works, thank you soo much 😉

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

This topic contains 3 replies, has 2 voices, and was last updated by  pedro_fama 10 years ago.

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