Question

I have a link that is 1068 characters long. The Facebook dialog appears but displays an error message: API Error Code: 100 API Error Description: Invalid parameter Error Message: link too long

FB.ui({ method: 'feed', name: "My post with a long link", link: "http..1068characters", picture: yikes.jpg, description: "Why not?" }, function(response) { if (response && response.post_id) { alert('Your Facebook post was published.'); } else { alert('Your Facebook post was NOT published.'); } });

If I shorten my link to say, around 725 characters, everything works fine. I can't find in the Facebook documentation, or anywhere else, where there is a limit on the number of characters that can be passed in the Feed Dialog "link" parameter.

Was it helpful?

Solution

Based on 'trial-and-error' the (current) limit is 1000 characters.

OTHER TIPS

Based on the DOC, it's 1024 characters!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top