2012-01-18 179 views
0

最近我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,電子郵件

回答

5

發送的應用程序產生的請求與一個應用訪問令牌完成,得到通過下面的網址:https://graph.facebook.com/oauth/access_token?client_id=APPID&client_secret=APPSECRET&grant_type=client_credentials

參見documentation

相關問題