Title: API issue: Facebook + Instagram
Last modified: October 31, 2016

---

# API issue: Facebook + Instagram

 *  Resolved [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/)
 * Using free version of plugin.
 * We are trying to use both the facebook feed and the instagram feed on our sidebars.
 * There seems to be some sort of bug. The facebook feed works fine, but then the
   instagram feed is saying:
    “To see the Instagram feed you need to add your own
   API Token to the Instagram Options page of our plugin.”
 * Upon investigating the error log I see:
    PHP Warning: Invalid argument supplied
   for foreach() in /************/public_html/wp-content/plugins/feed-them-social/
   feeds/instagram/instagram-feed.php on line 311, referer: [http://m.facebook.com](http://m.facebook.com)
 * What seems to be happening is the instagram request is not returning anything
   useful, but it worked once. I’m fairly confident that nothing is wrong with our
   API settings… I’m concerned that the referer on the facebook request is instagram.
 * Thoughts?

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377675)
 * [@pframe](https://wordpress.org/support/users/pframe/),
 * Make sure you are using at least version 2.0.9. Also if you are a long time user
   of the plugin we have made some recent changes do to instagram’s recent API change.
   If you have not done so already make sure you have an access token for the Instagram
   feed. You can get one on the Instagram Options page of our plugin… do the same
   for Facebook options page too. After you do that, empty the cache on the plugin
   and view the feeds again.
 * Spencer
    -  This reply was modified 9 years, 9 months ago by [slickremix](https://wordpress.org/support/users/slickremix/).
      Reason: missing text
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377691)
 * Hey Pframe,
    Sorry for the troubles and thanks for using our plugin! Can you 
   please give us the report from the system info page under the feed them tab?
 * Just curious here have you generated an API token on the Instagram settings page
   under the Feed Them tab when logged into the WordPress Dashboard?
 * Thanks,
    Justin Labadie
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377729)
 * We are fairly new to the plugin.
    We indeed have entered an API token, the one
   that it got using the button wasn’t really working so we registered one in the
   instagram developer panel. It worked this morning and then we started seeing 
   the message about adding an API key.
 * We are indeed using Feed Them Social v2.0.9
 * Neither clearing the cache or developer mode has helped.
 *     ```
       ### Begin System Info ###
   
       SITE_URL:                 http://mormonsud.org
       Feed Them Social Version: 2.0.9
   
       -- WordPress Configuration:
   
       WordPress Version:        4.6.1
       Multisite:                No
       Permalink Structure:      /%year%/%monthnum%/%day%/%postname%/
       Active Theme:             Extra 2.0.15
       PHP Memory Limit:         256M
       WP_DEBUG:                 Disabled
   
       -- Webserver Configuration:
   
       PHP Version:              5.5.9-1ubuntu4.20
       Web Server Info:          Apache/2.4.7 (Ubuntu)
   
       -- PHP Configuration:
   
       Safe Mode:                No
       Upload Max Size:          30M
       Post Max Size:            30M
       Upload Max Filesize:      30M
       Time Limit:               0
       Max Input Vars:           1000
       Allow URL File Open:      On ()
       Display Erros:            N/A
   
       -- PHP Extensions:
   
       FSOCKOPEN:                Your server supports fsockopen.
       cURL:                     Your server supports cURL.
   
       -- Active Plugins:
   
       Akismet: 3.2
       Cloudflare: 3.0.6
       CodeStyling Localization: 1.99.30
       Customized Recent Comments: 1.2
       Disable / Hide Comment URL: 1.0
       Elegant Themes Updater: 1.2
       Enable Media Replace: 3.0.5
       Feed Them Social (Facebook, Instagram, Twitter, etc): 2.0.9
       Flexi Pages Widget: 1.7.3
       Force Regenerate Thumbnails: 2.0.6
       Google Analytics by MonsterInsights: 5.5.4
       iThemes Security: 5.6.4
       Media Deduper: 1.1.0
       Monarch Plugin: 1.3.2
       My Custom Functions: 3.4
       Photo Gallery: 2.2.89
       Post Expirator: 2.1.4
       Redirection: 2.4.5
       Top 10: 2.4.2
       Wordfence Security: 6.2.3
       WP-PageNavi: 2.91
       Yoast SEO: 3.7.1
   
       -- Custom Token or Keys added to Options Pages
       -- You must have a custom token to use the feeds
   
       Facebook App Token:         Yes
       FB App ID for Like Button:  No
       Twitter Consumer Key:       No
       Twitter Secret:             No
       Twitter Token:              No
       Twitter Token Secret:       No
       Instagram:                  Yes
   
       ### End System Info ###
       ```
   
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377786)
 * Oh, we may be hitting an instagram API key sandbox limit? We only have 2000 views
   today though.. and as long as the plugin caches.. I don’t think we would have
   hit that limit yet?
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377854)
 * Yes that could be the issue. If you are using our button though to get a token
   it should not be in sandbox, our app is live that returns the token for you. 
   Here are the rate limits. [https://www.instagram.com/developer/limits/](https://www.instagram.com/developer/limits/)
 * Spencer
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8377857)
 * oh yeah, our plugin caches for about 20 minutes then resets.
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8378047)
 * So, I just switched that API key to the one it gives when you press the button.
   It worked for approximately an hour, and now its giving the message and php warning
   again…
 * thoughts?
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8378077)
 * What does the error message say on the Instagram Options page under your access
   token.
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8378094)
 * No error.
    “Your access token is working! Generate your shortcode on the settings
   page.”
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8378098)
 * When I said message I meant this one where the shortcode is
    “To see the Instagram
   feed you need to add your own API Token to the Instagram Options page of our 
   plugin.”
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8381729)
 * It’s tough to say at this point. It sounds like you are being rate limited, but
   for some reason the error is not showing on the backend. Possibly your server
   is blocking the request after a certain amount of times too. It might be worth
   contacting your host and explaining the problem and see if the logs show any 
   pertinent info.
 * Spencer
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8381828)
 * Well, come to find out Instagram API has been intermittent since yesterday, and
   even still. We had the same problem and of course no proper errors are being 
   returned because the API is not accessible. Just a matter of time before they
   get it humming I would guess.
 * Spencer
 *  Thread Starter [pframe](https://wordpress.org/support/users/pframe/)
 * (@pframe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8381869)
 * I’m both the site developer and host manager. I don’t know of any reason our 
   server would be blocking the request.
    Thanks for the help! If you come across
   anything other than the Instagram API being unresponsive I’d appreciate if you’d
   let me know. I’ll see if I can find a good place to monitor Instagram API service
   issues… I may chime back in if the problem persists past Instagram fixing things.
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8382015)
 * Right on, and yeah it’s definitely the API causing the problem cause our demo
   site experienced the same issue.
 * Spencer

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘API issue: Facebook + Instagram’ is closed to new replies.

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 14 replies
 * 2 participants
 * Last reply from: [slickremix](https://wordpress.org/support/users/slickremix/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/api-issue-facebook-instagram/#post-8382015)
 * Status: resolved