Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

Based on the DOC, it's 1024 characters!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top