You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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)
  • 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):
    <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>
    
    Replace YOUR_APP_ID with 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 .htaccess file (for Apache servers) to allow Facebook's domain:
    Header set Access-Control-Allow-Origin "https://www.facebook.com"
    Header set Access-Control-Allow-Methods "GET"
    
    For Nginx servers, add this to your server block:
    add_header Access-Control-Allow-Origin "https://www.facebook.com";
    add_header Access-Control-Allow-Methods "GET";
    

Quick Recap of Likely Missing Steps

  1. Adding your WordPress site's domain and URL to the Facebook app's basic settings
  2. Ensuring the Facebook JavaScript SDK is properly loaded (either via the plugin or manually)
  3. Configuring moderation tools and notification preferences in both the Facebook app and your personal account
  4. Adjusting cache or CORS settings to let Facebook access your site's metadata

内容的提问来源于stack exchange,提问作者Dennis Claes

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:42:42