Facebook API自动发布文章失败求助:API返回(#100)错误
Hey there, let’s work through this Facebook API post problem together—since you’re already an app admin and OAuth is working, we can skip those basic checks and dive straight into the root causes behind that (#100) error.
First, let’s unpack that error message: (#100) URL参数可指定图片、名称、缩略图或描述 translates to a problem with the URL-related parameters in your post request. Facebook’s API is flagging that one or more of your picture, name, caption, description, or link parameters are invalid, missing, or inaccessible.
Here’s a step-by-step debugging plan tailored to your situation:
Validate every URL parameter’s accessibility and format
Facebook requires any URLs you pass (for images, links, etc.) to be publicly accessible—no local servers, login walls, or hotlink protection blocking them. For example:- If you’re using a
pictureparameter, make sure it’s a direct link to an image file (likehttps://example.com/test.jpg) not a webpage that contains the image. - Test each URL in an incognito browser tab to confirm it loads without login prompts or errors.
- If you’re using a
Start with a minimal test request
Strip down your API call to the absolute basics to rule out conflicting parameters. Use the Graph API Explorer (since you’re an admin, you have full access here) to send this minimal request to your page’s feed endpoint:POST /{your-page-id}/feed Content-Type: application/json { "message": "Test post from API debug" }If this posts successfully to your page, add one URL-related parameter at a time (e.g., first
link, thenpicture) and test each iteration. This will pinpoint exactly which parameter is triggering the (#100) error.Double-check your access token and permissions
Even if OAuth works, confirm you’re using a page access token (not a user access token) to post to the page. User tokens only post to personal timelines. You can fetch a valid page token via the/{your-user-id}/accountsendpoint.
Also, verify your app has thepages_manage_postspermission enabled. For testing purposes (since you’re an admin), you don’t need app review approval yet—but make sure the permission is listed in your app’s active permissions for your test account.Debug your full request payload
Copy the exact request body and headers your app is sending (redact any sensitive tokens) and paste it into the Graph API Explorer. Often, issues come from malformed JSON, missing required fields, or typos in parameter names (e.g.,picinstead ofpicture).Check content compliance
Even if your API request succeeds, Facebook’s automated moderation might hide posts that violate community guidelines. Test with a neutral, publicly available URL (like a Wikipedia page) and a generic image to rule out content-related blocking.
Once you narrow down the problematic parameter or issue, fixing it should get your auto-posts showing up on the page.
内容的提问来源于stack exchange,提问作者John Rand




