如何在Facebook Share Dialog上修复"需要有效的重定向URI"?

Joh*_*han 9 redirect facebook facebook-sharer facebook-graph-api facebook-social-plugins

我使用的是标准Feed DialogFacebook的分享我的网站上的帖子.这个问题是由于问题导致我无法正常工作redirect_uri.这很奇怪,因为我拥有应用程序,应用程序ID是正确的,URL是正确的...这可能是什么问题?我得到的错误是:需要有效的重定向URI.

这是我正在使用的代码:

<a href=https://www.facebook.com/dialog/feed?app_id=9999999999999&link=http://hereismylink.com/todays/&picture=http://fbrell.com/f8.jpg&name=%TITLE%&caption=testing1234&description=blablabla&redirect_uri=http://hereismylink.com>Share on Face</a> 
Run Code Online (Sandbox Code Playgroud)

PS:redirect_uri和app_id是虚拟文本,通常,它们是我网站上正确的数字和字母.我不想在这里做广告.

仅供参考:sandbox mode被关闭了

Joh*_*han 6

我通过在页面中说明我的页面的URL来解决它app domain.Facebook文档缺乏这种信息太糟糕了,因为它必须让它发挥作用.无论如何,感谢lgy给我链接.

  • 我注意到Facebook的文档非常糟糕. (3认同)