• Resolved toddleweb

    (@toddleweb)


    Hi

    Custom FB ver 1.9.8.1 from WordPress repos (free version) dloaded today. Tested my ID successfully on your demo site without FB token. DieKoffiekan (set as page – no fb id token )

    Using basic shortcode inside text widget or on post page – both display same error:

    Warning: Invalid argument supplied for foreach() in /xxxx/xxx/xxxx/wp-content/plugins/custom-facebook-feed/custom-facebook-feed.php on line 638

    NO feed shows at all.

    Then displays the Like box which I set up.

    When testing the FB connection API on the plugin support screen it reports:

    {"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190}}
    ————————–

    Cleared caches between each test.

    Ajax setting On / OfF – no difference.

    Tested as single plugin activated – no luck.

    Tried 2 other ids and get exact same results.

    Please help – dont want to go to another plugin!
    Thanks a million

    https://www.ads-software.com/plugins/custom-facebook-feed/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author smashballoon

    (@smashballoon)

    Hey toddleweb,

    That error message usually means that you’re using your own Access Token and that it’s either invalid or incorrect. If you’re using an Access Token then can you remove it and leave the Access Token field blank?

    Let me know whether that does the trick,

    John

    Thread Starter toddleweb

    (@toddleweb)

    HI John

    I am NOT using any ID token and the field is blank. Made sure to save blank. Cleared all cache before trying again.

    Also tested a number of times on your own demo site without Access Token

    Tested with a number of other Facebook pages as well and get the same error.

    Thanks

    Plugin Author smashballoon

    (@smashballoon)

    Hey toddleweb,

    Could you tell me the Facebook Page ID that you’re using in the plugin? Could you also double check for me that the ‘Facebook Access Token’ field is blank and that the ‘Enter my own Access Token’ box is unchecked? The error you’re receiving from the Facebook API is Access Token related so I want to be sure.

    Many thanks,

    John

    Thread Starter toddleweb

    (@toddleweb)

    Okay – solved the problem as follows:

    Definitely did not have a check in the Enter my own Acces Token box BUT … decided to check it to see the field that you were talking about i.e. Facebook Access Token field.

    Found an invalid id code in that field (probably leftover from all my attempts).

    So even if the “Enter my own Access Token” box is not ticked, still check to see if there is anything in the hidden field.

    All seems to be working fine now. Thanks for your guidance!

    Plugin Author smashballoon

    (@smashballoon)

    Glad to hear it’s working now ?? I’ll change the functionality in the next update so that if that box is unchecked then it doesn’t use the Access Token that you have in the field.

    No problem! If you have any issues in future then just let me know.

    John

    I have the same error

    Warning: Invalid argument supplied for foreach() in /xxxx/xxxxxxx/public_html/wp-content/plugins/custom-facebook-feed/custom-facebook-feed.php on line 638,

    but whenever I remove access token, the feed disappears. It showed the feed perfectly fine yesterday, I just noticed this error today. Also I embedded the code via Php, not the shortcode.

    Please help,
    M.

    Plugin Author smashballoon

    (@smashballoon)

    Hey marish,

    Could you go to the plugin’s Support tab and tell me what your System Info says? Could you also click on the ‘Test connection to Facebook API’ button and let me know what response you get?

    Many thanks,

    John

    Katie McGregor

    (@katiekatiemcgregorbiz)

    I have the same problem and as it looks potentially a great plugin, would like to see if can solve the problems. i.e.
    Warning: Invalid argument supplied for foreach() in /xxxxx/wp-content/plugins/custom-facebook-feed/custom-facebook-feed.php on line 638

    I tried the API check box thing and nothing there.

    On the Support tab the system info says:
    PHP Version: 5.3.25

    Web Server Info: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.5

    PHP allow_url_fopen: Yes

    PHP cURL: Yes

    JSON: Yes

    —-
    and the “text connection…” says:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
    https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221;
    xml:lang=”en” lang=”en” id=”facebook”>
    <head>
    <title>Facebook | Error</title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
    <meta http-equiv=”Cache-Control” content=”no-cache” />
    <meta name=”robots” content=”noindex,nofollow” />
    <style type=”text/css”>
    html, body {
    margin: 0px;
    padding: 0px;
    text-align: center;
    font-family: “Lucida Grande”, “Tahoma”, “Verdana”, “Arial”, sans-serif;
    color: #333333;
    }

    a.menu {
    margin: auto;
    position: relative;
    display: block;
    width: 964px;
    height: 29px;
    background: #3B5998 url(‘https://s-static.ak.fbcdn.net/common/error.png&#8217;)
    top center no-repeat;
    }

    .core {
    text-align: left;
    margin: auto;
    width: 904px;
    padding: 1em 0em;
    }

    h1 {
    font-size: 18px;
    }

    p {
    font-size: 13px;
    }

    .footer {
    border-top: 1px solid #DDDDDD;
    color: #777777;
    float: left;
    width: 904px;
    padding: 5px 8px 6px 0;
    font-size: 11px;
    }
    </style>
    <script type=”text/javascript” charset=”utf-8″>
    function back() {
    if (1 < history.length) {
    history.back();
    return false;
    }
    return true;
    }
    </script>
    </head>
    <body>

    <div class=”core”>
    <h1>Sorry, something went wrong.</h1>
    <p>We’re working on getting this fixed as soon as we can.</p>
    <p>Go Back</p>
    <div class=”footer” id=”pagefooter_copyright”>
    Facebook ?
    2013
    ·
    Help
    </div>
    </div>
    </body>
    </html>

    Thanks

    Plugin Author smashballoon

    (@smashballoon)

    Hey Katie,

    That error sounds like there was a temporary issue with Facebook’s API when trying to connect. Are you still seeing the same error when clicking on the ‘Test connection to Facebook API’ button? If so, could you tell me what Facebook Page ID you’re using?

    Many thanks,

    John

    Hi,
    Same problem here. No token entered and the box is unchecked.
    The like box and image do appear.
    You can have a look here: https://www.casa-africano.eu/bedandbreakfast/
    Thanks in a dvance!
    Remco

    Plugin Author smashballoon

    (@smashballoon)

    Hey Remco,

    Could you go to the plugin’s Support tab and tell me what your System Info says? Could you also click on the ‘Test connection to Facebook API’ button and let me know what response you get?

    Many thanks,

    John

    System Info

    PHP Version: 5.3.27

    Web Server Info: Apache

    PHP allow_url_fopen: Yes

    PHP cURL: Yes

    JSON: Yes

    Test connection to Facebook API has an empty textarea field as a result.

    Regards,
    REmco

    Plugin Author smashballoon

    (@smashballoon)

    Hey Remco,

    If you’re getting a blank box then that means that something is blocking your site from connecting to the Facebook API. It’s usually the case that your host has a security measure in place, such as a firewall of proxy, which is blocking the connection. Could you check with your hosting support team to see whether any such measure is in place which might be blocking your server from connecting to https://graph.facebook.com?

    These two support threads had the same problem and it was due to the host blocking the connection:
    https://www.ads-software.com/support/topic/cant-get-the-feed-to-show
    https://www.ads-software.com/support/topic/feed-displaying-only-on-one-site

    John

    hai
    I have some doubt
    I want to post a data in my own facebook page by using app id and app secret
    I already get app id and app secret and also I create one own facebook page and i have that id also
    Now what i want to do to post a data
    Please help Me

    Plugin Author smashballoon

    (@smashballoon)

    Hey muthusamy P,

    The plugin isn’t able to post to your Facebook page. It is only able to display the posts from your Facebook page on your website.

    To display your Facebook posts all you need is to add the ID of your page to the ‘Facebook Page ID’ field on the plugin’s Settings page. You can find out more information about how to find your Page ID here.

    Let me know whether that makes sense or if you have any other questions.

    John

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Invalid OAuth access token / Invalid argument – line 638’ is closed to new replies.