OAuthException (#368) The action attempted has been deemed abusive or is otherwise disallowed

时光总嘲笑我的痴心妄想 提交于 2019-12-04 02:24:19

Had the same problem. I figured out that Facebook was refusing my shortlinks, which makes me a bit mad...but I get the point because its possible that shortlinks can be used to promote malicious content...so if you have shortlinks as part of your test, replace them w the full url...

I believe this message is encountered for one of the two reasons :

  1. Your post contains malicious links
  2. You are trying to make a POST request over a non-https connection.

The second one is not confirmed but I have seen that behavior. While same code in my heroku hosted app worked fine, it gave this #368 error on my 000webhost hosted .tk domain which wasn't secured by SSL

Just in case anyone is still struggling with this, the problem occurs when you put URLs or "action links" that are not in your own app domain, if you really need to post to an extarnal page, you'll have to post to your app first, then redirect from there using a script or something. hope that helps.

also it's better in my opinion to use HTTPS links, as sometimes i've seen a behaviour where http links would be rejected, but that's intermittent.

I started noticing that recently as well when running my unit tests. One of the tests I run is submitting a link that I know Facebook has blocked to verify that I handle the error correctly. I used to get this error:

Warning: This Message Contains Blocked Content: Some content in this message has been reported as abusive by Facebook...

But starting on July 4th, I started receiving this error instead:

(#368) The action attempted has been deemed abusive or is otherwise disallowed'

Both errors indicate that Facebook doesn't like what you're publishing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!