简体   繁体   English

如何将消息或通知发送给Facebook中的特定朋友

[英]How Can i send the Message or Notification to Particular Friend In Facebook

I need to send the Notification or Message to Particular Friend In Facebook, I have used the WCF Webservice and i also get the Friend's ID but when i send the message or Notification then I m getting the Following Error AS "(OAuthException - #200) (#200) Feed story publishing to other users is disabled for this application" 我需要将通知或消息发送给特定的朋友,在Facebook中,我使用了WCF Web服务,我也获得了朋友的ID,但是当我发送消息或通知时,我得到了以下错误AS“(OAuthException-#200) (#200)此应用程序已禁止向其他用户发布Feed故事”

Please reply me ASAP Thanks in Advance !!! 请尽快回复我提前谢谢!!!

Nikunj 尼昆吉

It looks like you can't send private messages any more through the graph-api due to some abuse issues. 由于某些滥用问题,您似乎无法再通过graph-api发送私人消息。 If you're just trying to post to someone's news feed then you need to be sure that you request the appropriate permissions when generating your access token (either publish_stream or publish_actions depending on what exactly you're trying). 如果您只是想发布到某人的新闻提要,那么您需要确保在生成访问令牌时要求适当的权限(取决于发布的内容,是publish_stream还是publish_actions)。 The permissions are listed here: 权限在此处列出:

https://developers.facebook.com/docs/reference/login/extended-permissions/ https://developers.facebook.com/docs/reference/login/extended-permissions/

Details for requesting additional permissions in the android SDK are here: 在android SDK中请求其他权限的详细信息在这里:

https://developers.facebook.com/docs/android/login-with-facebook/#step3 https://developers.facebook.com/docs/android/login-with-facebook/#step3

Hope this helps. 希望这可以帮助。

Edit: 编辑:

Re Email, there is no way to get a friend's email. 重新发送电子邮件,无法获取朋友的电子邮件。 The "email" permission gives you access to the user's email, but there is no equivalent for "friends_email". “电子邮件”权限使您可以访问用户的电子邮件,但是“ friends_email”没有等效权限。 Facebook is pretty wary about giving apps the ability to privately contact people for fear of spam. Facebook对于让应用程序能够私自联系他人(因为担心垃圾邮件)的能力非常谨慎。 Sorry. 抱歉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM