0
我試圖讓Facebook的活動與GraphRequest
和GraphRequestManager
,但我的結果是一個圖形API搜索[錯誤:類型的NSDictionary不能轉換到的NSString]
這裏是我的代碼: 與之反應母語
var search = JSON.parse('{ "q":"Coffee", "type": "event"}');
new GraphRequestManager().addRequest(new GraphRequest(
search,
null,
function(error: ?Object, result: ?Object) {
if (error) {
console.log('Error fetching data: ' , error);
} else {
console.log('Success fetching ddata: ' , result);
}
},
)).start()
如果你發佈了一個例子,那會更有幫助:) – jeevana