WordPress Social Gallery Lite插件Facebook图片评论异常及"Can't download"报错求助
Hey Dennis, let's break down your two key issues with Social Gallery Lite and Facebook comments, and walk through the likely missing steps or fixes:
Issue 1: Comments not showing up in moderation tools + no new comment notifications
Here's what to check:
- Facebook App Domain & URL Setup: Even if you created the app, you might have missed adding your WordPress site's details to the app's core settings. Head to your Facebook App Dashboard > Settings > Basic:
- Add your site's domain (e.g.,
yoursite.com) to App Domains - Under Website, fill in your full site URL (e.g.,
https://yoursite.com) - Make sure you've added a valid Privacy Policy URL (required for public apps)
- Add your site's domain (e.g.,
- Moderation Tool Configuration: Go to your Facebook App Dashboard > Products > Comments > Moderation Tools. Confirm that:
- You've selected the correct moderation queue linked to your app
- Your admin account is added as a moderator for the queue
- Notification Settings:
- In Facebook's personal settings (not the app dashboard), go to Settings > Notifications and ensure you've enabled notifications for comments from apps you manage
- In the Facebook App Dashboard, check Notifications settings to ensure app-level comment alerts are turned on
- Plugin Moderation Toggle: Double-check Social Gallery Lite's settings to confirm the "Enable Comment Moderation" option is toggled on (some plugins hide this in advanced settings)
Issue 2: "Can't download" error on first comment to new images (comments save after refresh)
This is almost always related to Facebook SDK loading or page metadata accessibility. Try these fixes:
- Verify Facebook SDK Integration: Social Gallery Lite relies on the Facebook JavaScript SDK to load comments. If the plugin isn't loading it correctly, add it manually to your theme's
header.php(before the closing</head>tag):
Replace<div id="fb-root"></div> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v18.0&appId=YOUR_APP_ID" nonce="YOUR_NONCE_VALUE"></script>YOUR_APP_IDwith your actual app ID, and update the SDK version if needed (Facebook regularly updates this) - Fix Image/Page URL Issues: Facebook's comment system needs to fetch metadata from the image's permalink page. Ensure:
- Your WordPress site uses absolute URLs (check Settings > General to confirm Site URL and Home URL are full HTTPS links)
- The image's individual page (permalink) is publicly accessible (no password protection or membership restrictions)
- Clear & Exclude Cache: If you use a caching plugin (e.g., WP Rocket, W3 Total Cache):
- Clear all site cache first
- Add Social Gallery Lite's script files and image permalink pages to the cache exclusion list. Cached pages can prevent the Facebook SDK from fetching fresh metadata on first load
- Adjust Server CORS Settings: If your images are hosted on a CDN or subdomain, your server might block Facebook from accessing them. Add this rule to your
.htaccessfile (for Apache servers) to allow Facebook's domain:
For Nginx servers, add this to your server block:Header set Access-Control-Allow-Origin "https://www.facebook.com" Header set Access-Control-Allow-Methods "GET"add_header Access-Control-Allow-Origin "https://www.facebook.com"; add_header Access-Control-Allow-Methods "GET";
Quick Recap of Likely Missing Steps
- Adding your WordPress site's domain and URL to the Facebook app's basic settings
- Ensuring the Facebook JavaScript SDK is properly loaded (either via the plugin or manually)
- Configuring moderation tools and notification preferences in both the Facebook app and your personal account
- Adjusting cache or CORS settings to let Facebook access your site's metadata
内容的提问来源于stack exchange,提问作者Dennis Claes
相关产品推荐
相关产品推荐

