2012-01-11 15 views
0

當我得到的錯誤錯誤使用自定義的Open Graph行動

這個動作是不允許設置用戶的消息,因爲這個屬性 沒有要求被批准。

對於我已提交審批的自定義Open Graph Action Type westberksconnect:report

我在C#.NET 4.0和我使用的代碼使用Facebook.dll低於

 string strStatus = ""; 
     strStatus = HttpContext.Current.Request.QueryString["status"]; 
     string Lat = HttpContext.Current.Request.QueryString["lat"]; 
     string Lon = HttpContext.Current.Request.QueryString["long"]; 

     string strToken = "XXXX"; 
     string strUpdateText = "We've received a report of a problem with " + strStatus + "."; 

     var client = new FacebookClient(strToken); 

     Dictionary<string, object> WallPost = new System.Collections.Generic.Dictionary<string, object>(); 
     WallPost.Add("message", strUpdateText); 
     WallPost.Add("link", "http://maps.google.co.uk/maps?q=" + Lat + "+" + Lon); 
     WallPost.Add("name", "View On A Map"); 
     WallPost.Add("picture", "http://www.westberks.gov.uk/images/common/googlemapicons/service_status/highway_009966.png"); 
     WallPost.Add("caption", "View a map of the location of the reported problem"); 
     WallPost.Add("description", " "); 
     WallPost.Add("problem", "http://samples.ogp.me/10150293874562522"); 

     var response = client.Post("/290203581014564/westberksconnect:report", WallPost); 

有誰知道爲什麼我得到這個錯誤,他們有一個解決的辦法請?

回答

相關問題