2012-08-01 60 views
1

試圖在我的iPhone應用程序中發佈OPEN GRAPH Facebook動作。 它在對象類型上返回一個錯誤。雖然對象類型是正確的。不知道是什麼問題...打開圖形操作IOS

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 

           facebookToken, @"facebook_access_token", 
           @"photo", @"type", 
           @"IMG_URL_HERE", @"url", 
           @"Test Title", @"title", 
           @"IMG_URL_HERE", @"image", 
           @"Test Description", @"description", 
           nil]; 


[delegate.facebook requestWithGraphPath: @"me/APP_SHARED_NAME:shared" andParams:params andHttpMethod: @"POST" andDelegate: self]; 

及其與此錯誤返回

Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x7fa78f0 {error=<CFBasicHash 0x7fa6b10 [0x1a0bb48]>{type = mutable dict, count = 3, 

項=> 2:{內容= 「類型」} = {內容= 「異常」} 3:{contents =「message」} = {contents =「您嘗試發佈的操作無效,因爲它沒有指定任何引用對象。必須至少指定以下屬性之一:photo。」} 6 :{contents =「code」} = 1611072 } }

任何人有想法回合呢???

回答

0

一個對象應該提及一個公開的URL和開放圖標記。如果你不認爲這是問題,請提供你的實際代碼,所以我們可以肯定。