最近我尝试发送应用程序通知,但是我收到了错误:
(OAuthException)(#2)无法创建任何应用请求
代码是:
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:
范围: offline_access,publish_stream,user_photos,publish_actions,read_stream,email
答案 0 :(得分:5)
使用应用程序访问令牌发送应用程序生成的请求,通过以下网址获取:https://graph.facebook.com/oauth/access_token?client_id=APPID&client_secret=APPSECRET&grant_type=client_credentials