Facebook是否允许通过应用程序sdk发送通知?
问题描述:
最近我tryed发送应用通知,但我得到的错误:Facebook是否允许通过应用程序sdk发送通知?
(OAuthException) (#2) Failed to create any app request
代码:
范围: offline_access,publish_stream,user_photos使用获得
FacebookClient fbClient = new FacebookClient(access_token);
var args = new Dictionary<string, object>();
args["message"] = "Invitation to app";
args["title"] = "Super title";
args["data"] = "you are welcome";
fbClient.Post("/" + fbid + "/apprequests", args);
的access_token ,publish_actions,read_stream,电子邮件
答
发送的应用程序产生的请求与一个应用访问令牌完成,得到通过下面的网址:https://graph.facebook.com/oauth/access_token?client_id=APPID&client_secret=APPSECRET&grant_type=client_credentials