我有關於測試打開圖形的東西的問題。打開圖表自定義操作,鏈接到其他用戶
我正在看的文檔是這樣的https://developers.facebook.com/docs/beta/opengraph/ 我成功地定義了自定義對象和操作。但是,我無法弄清楚如何將當前用戶與其他用戶相關聯。例如,假設我定義了一個自定義操作'踢'。我希望當前用戶能夠'踢'他/她的朋友之一。 我能想到的最接近的對象是'profile',但是當我傳遞user_id時,'http://www.facebook.com/profile.php?id='或http://graph.facebook.com/,它不起作用。
這是請求我試過
POST https://graph.facebook.com/me/myapp:kick?access_token=abc&profile=http%3A%2F%2Fwww.facebook.com%2F123 POST https://graph.facebook.com/me/myapp:kick?access_token=&profile=123 POST https://graph.facebook.com/me/myapp:kick?access_token=abc&profile=http%3A%2F%2Fwww.facebook.com%2Fprofile.php%3Fid%3D123 POST https://graph.facebook.com/me/myapp:kick?access_token=abc&profile=http%3A%2F%2Fgraph.facebook.com%2F123
這是響應我得到
{"error":{"message":"An unexpected error has occurred. Please retry your request later.","type":"OAuthException"}}
什麼是POST領域? – genesis
你是什麼意思? – shendz
你需要創建POST請求,你發送的是什麼字段? – genesis