Facebook Send Button - 'Sorry, something went

2019-06-13 17:17发布

问题:

I'm implementing a Facebook Send dialog, by opening facebook.com/dialog/send in a popup window. When you click the 'Send' button the dialog will display the error: 'Sorry, something went wrong' - but only on certain URLs. The best examples I have are:

https://www.facebook.com/dialog/send?app_id=123050457758183&name=People%20Argue%20Just%20to%20Win&link=facebook.com/iselect&redirect_uri=http://www.example.com/response - Doesn't work.

Working: https://www.facebook.com/dialog/send?app_id=123050457758183&name=People%20Argue%20Just%20to%20Win&link=google.com&redirect_uri=http://www.example.com/response - Works.

These links are identical except that the first one shares 'facebook.com' and the second one shares 'google.com'. Only the second one works.

I've noticed this with my own domain (skiggle.com.au) which doesn't work, versus skiggle.com, which does.

The same errors occur if I use the Facebook JavaScript API with FB.ui({method: 'send'}).

What is happening?

回答1:

Answering my own question:

Both the links now work for me, although I have not changed anything. I can only hypothesise that Facebook has either fixed this bug, or this issue occurs on some internet connections and not others.



回答2:

I think Facebook is trying to read the URL and pre-populate the image and content. In your case probably because skiggle.com.au is a redirected to the other domain and facebook doesn't accept it.

Edit. Your first link works though



回答3:

I had the same problem & worked out that this was due to linking to a Facebook page that did not have a vanity URL set up (i.e. http://www.facebook.com/CubicMushroom rather than http://www.facebook.com/profile.php?id=261963707177053). If you set up a vanity URL for the page it seems to work OK (providing you link to the vanity URL version of the page URL).

To claim a vanity URL, once you have a certain no of like (it used to be 25, but think it's a little lower now) visit https://www.facebook.com/username/