javascript - Errant Facebook SDK Batch request -
i have facebook sdk batch, , 1 of requests returning next error:
"error": { "message": "unsupported request. please read graph api documentation @ https://developers.facebook.com/docs/graph-api", "type": "graphmethodexception", "code": 100 }
here's batch:
fb.api('/', 'post', { batch: [ { method : 'get', name : 'user', relative_url : '/me' }, { method: 'get', name : 'post-ids', relative_url: '/group-id/feed?fields=id', omit_response_on_success : false }, { method : 'get', name : 'post-data', relative_url : '?ids={result=post-ids:$.data.*.id}&fields=id,actions,application,from,to,message,message_tags,with_tags,picture,place,properties,source,status_type,link,description,caption,attachments,object_id,type,created_time,updated_time,likes.summary(1),comments.summary(1)', omit_response_on_success : false }, { method : 'get', name : 'post-user-info', relative_url : '/{result=post-data:$.data.*.from.id}/', omit_response_on_success : false }, { method : 'get', name : 'post-likes', relative_url : '?ids={result=post-ids:$.data.*.id}/likes?limit=5000', omit_response_on_success : false }, { method : 'get', name : 'post-comments', relative_url : '?ids={result=post-ids:$.data.*.id}/comments?fields=id,actions,application,from,to,message,message_tags,with_tags,picture,place,properties,source,status_type,link,description,caption,attachments,object_id,type,created_time,updated_time,likes.summary(1)&limit=5000', omit_response_on_success : false } ] }, function (response) {
the 4th request, name post-user-info
errant request. basically, each post, want info (profile image in particular) user created post. what's best way this?
javascript facebook batch-processing facebook-sdk-4.0
No comments:
Post a Comment