facebook-feed.php on line 252
-
hello,
i’m getting error for showing my FB group on my site https://www.astral-guru.com
group id is correct, url is
https://www.facebook.com/groups/380963762051034/
so i entered 380963762051034Warning: Invalid argument supplied for foreach() in /home/u824224114/public_html/wp-content/plugins/feed-them-social/feeds/facebook/facebook-feed.php on line 252
in widget or page..line 252 says..
foreach($data->data as $d) {
any idea how to fix it?
thanks in advance!
-
report says —
============================================================================================= Versions ============================================================================================= Feed Them Social Plugin version: 1.5.6 WordPress version: WP 4.0 Installed plugins: All In One SEO Pack by Michael Torbert version 2.2.3.1, Chat Lite by WPMUDev version 1.0.8.3, Contact Form 7 by Takayuki Miyoshi version 3.9.3, Counterize II by Gabriel Hautclocq version 3.0.1, Feed Them Social by SlickRemix version 1.5.6, Flat Floating Social Bar by Tamim - wpflaty.com version 1.0, Spam Free WordPress by Todd Lahman, LLC version 1.5.1, TheCircle: Daily Horoscope by TheCircle version 1.0c, WP Sliding Login/Dashboard Panel by Fay?al Tirich version 2.1, WP Symposium by Simon Goodchild version 14.05.02 ============================================================================================= Server Environment ============================================================================================= PHP Version: 5.3.24 Server Software: Apache WP Max Upload Size: 8 MB WP Debug Mode: No fsockopen: fsockopen is ON
Thanks for contacting us. Can you please paste the shortcode you are using?
using
[fts facebook id=380963762051034 type=group]
in widget (same if using in post/page)I was able to view you feed on our test page. Did you try emptying the cache from our settings page? https://feedthemsocial.com/test/
yeah.. i see.. tried to empty cache, reinstall.. everything.. but same error always.. no idea what to do.
Ok let’s check a couple more things. Thanks for your patience ??
I just added a check to see if cURL is active on your server. Please re-download and install the plugin and go to the System Info menu in our plugin and please repost the report.
If you do have cURL active on your server can you try and see if another shortcode will work. Like this one.
[fts facebook id=gopro posts_displayed=page_only type=page]
or this one
[fts instagram instagram_id=28902942]
thanks for helping me. here is the report
============================================================================================= Versions ============================================================================================= Feed Them Social Plugin version: 1.5.6 WordPress version: WP 4.0 Installed plugins: All In One SEO Pack by Michael Torbert version 2.2.3.1, Astrology Chart Wheel by A developer commissioned by Jeffrey Kishner version 0.2, Chat Lite by WPMUDev version 1.0.8.3, Clean Login by codection version 1.1.4, Contact Form 7 by Takayuki Miyoshi version 3.9.3, Counterize II by Gabriel Hautclocq version 3.0.1, Feed Them Social by SlickRemix version 1.5.6, Flat Floating Social Bar by Tamim - wpflaty.com version 1.0, Spam Free WordPress by Todd Lahman, LLC version 1.5.1, TheCircle: Daily Horoscope by TheCircle version 1.0c, WP Sliding Login/Dashboard Panel by Fay?al Tirich version 2.1, WP Symposium by Simon Goodchild version 14.05.02 ============================================================================================= Server Environment ============================================================================================= PHP Version: 5.3.24 Server Software: Apache WP Max Upload Size: 8 MB WP Debug Mode: No fsockopen: fsockopen is ON cURL: cURL is installed on this server
update…
using [fts facebook id=gopro posts_displayed=page_only type=page] it says no posts found
setting up my id instead “gopro” and changing type to “group” getting the same error as before. to me, seems like that “group” is the problem
instagram shortcode from above works okGotcha. Try this one…. and make sure to empty cache before adding or changing out the shortcodes, just to be sure.
[fts facebook id=gopro type=page]
After you test that and confirm, please email us at [email protected] so we can assist you further.
We just made an update to 1.5.7 that may fix your problem. Let us know if that works?
Hi,
I already tried to fix my issue by following advices mentioned in this thread.
This is error
Warning: Invalid argument supplied for foreach() in /home/zakladaz/public_html/wp-content/plugins/feed-them-social/feeds/facebook/facebook-feed.php on line 310Warning: Invalid argument supplied for foreach() in /home/zakladaz/public_html/wp-content/plugins/feed-them-social/feeds/facebook/facebook-feed.php on line 364
and this is my shortcode
[fts facebook id=foundationforprotectinganimalssplit album_id=316057381891849 type=album_photos image_width=250px image_height=250px space_between_photos=1px hide_date_likes_comments=no center_container=no image_stack_animation=no image_position_lr=-0% image_position_top=-0%]This is Facebook page I am using for test
https://www.facebook.com/foundationforprotectinganimalssplitAnd this is Facebook Album
https://www.facebook.com/media/set/?set=a.316057381891849.1073741825.316051595225761&type=3I tried using
316057381891849
316057381891849.1073741825.316051595225761
and
a.316057381891849.1073741825.316051595225761
as album_id but same error each time.Here is the page URL
https://zaklada-za-zastitu-zivotinja.hr/slike-iz-sklonista/I followed this
https://www.slickremix.com/docs/how-to-get-your-facebook-photo-gallery-id/1/And also I added fb app id just in case and cleared cache few times…
https://www.slickremix.com/docs/create-facebook-app-id-or-user-token/1/Any help would be welcomed ??
Best regards,
Marin Cokari?I removed app ID from settings and cleared cache. Now it works. Is it possible to make this work with Facebook profile?
Glad to hear you got it working! Sounds like maybe your app ID was expired possibly.
It is possible to get it working with your Facebook profile, the 2 conditions are;
1. Follow instructions here on setting up an APP in facebook and then also getting the 60 Day User Access token. Sometimes just getting the APP ID will be enough but for other posts or shares on your wall, you may need the 60 Day User Access token. https://www.slickremix.com/docs/create-facebook-app-id-or-user-token
2. Make sure your privacy settings are public when sharing links or images. It’s not required and may work in some cases without doing this, you’ll just have to test and see as facebook does change API calls from time to time about what can be seen.
Spencer
This is Facebook profile
https://www.facebook.com/zaklada.zazastituzivotinjaThis is Facebook album I am trying to post
https://www.facebook.com/zaklada.zazastituzivotinja/media_set?set=a.321618984631342.1073741825.100003497306456&type=3This is shortcode
[fts facebook id=zaklada.zazastituzivotinja album_id=321618984631342 type=album_photos image_width=250px image_height=250px space_between_photos=1px hide_date_likes_comments=no center_container=no image_stack_animation=no image_position_lr=-0% image_position_top=-0%]This is error
Warning: Invalid argument supplied for foreach() in /home/zakladaz/public_html/wp-content/plugins/feed-them-social/feeds/facebook/facebook-feed.php on line 364And this is webpage url
https://zaklada-za-zastitu-zivotinja.hr/galerija/mobile-uploads/When is token needed? I added token now instead of App ID? What is difference between User token and App token? On your tutorial says to paste App token while on Settings page User token.
Both seem to be working on feed from page and group but not from profile with mobile uploads, album is public and all pictures are public.
After I added token it shows only 5 pictures with question mark inside but it links them to Facebook images. But still there are over 100 pictures in that album?
Facebook profile feed also not possible?
Facebook profile
https://www.facebook.com/zaklada.zazastituzivotinjaError
No Posts Found. Are you sure this is a Facebook Page ID and not a Facebook Group or Event ID?Shortcode
[fts facebook id=zaklada.zazastituzivotinja posts_displayed=page_only type=page]Url
https://zaklada-za-zastitu-zivotinja.hr/najnovije-sa-facebook-profila/Best regards,
Marin Cokari?Token expired after 2 hours. When I remove token and clear cache Facebook page and group feed works. Facebook profile feed/mobile uploads still doesn’t.
I added short living token and cleared cache. Refreshed (Ctrl+Shift+R) Mobile uploads page which was showing error and now it again shows 5 thumbails with ? inside but linking to proper images on fb. Why so?
Error
Warning: Invalid argument supplied for foreach() in /home/zakladaz/public_html/wp-content/plugins/feed-them-social/feeds/facebook/facebook-feed.php on line 364Url
https://zaklada-za-zastitu-zivotinja.hr/galerija/mobile-uploads/Same issue with Najnovije sa Facebook profila
Error
No Posts Found. Are you sure this is a Facebook Page ID and not a Facebook Group or Event ID?Url
https://zaklada-za-zastitu-zivotinja.hr/najnovije-sa-facebook-profila/So I generated long living token now, cleared cache and all same, ? on thumbnails on page Mobile uploads and same error as before on Facebook feed from profile, page Najnovije sa Facebook profila.
I added some extra reading/posting permissions just in case I need them, and clicked Okey on each popup FB asked me for permission.Why can’t I still get this to work? Is there extra step with profile?
Best regards,
Marin Cokari?
- The topic ‘facebook-feed.php on line 252’ is closed to new replies.