The problem is with facebook’s Android SDK. We provide the Graph API string as-is to facebook’s SDK, but their SDK doesn’t support URL parameters in that string. Instead, they want to receive the parameters separately via an Android “Bundle” object, which is a dictionary/table. This is why our Corona facebook API defines a separate argument for receiving a table of parameters.
I didn’t realize facebook’s iOS SDK supported parameters both ways. That surprised me. [import]uid: 32256 topic_id: 34494 reply_id: 138890[/import]
Notice that Facebook complains that the access token is $TOKEN?access\_token=$TOKEN. Could this be a revelation of the problem? That Corona somehow makes an error in generating the URL it sends to Facebook? That would explain the initial “2500” error too.
My suspicion is that Corona simply adds access\_token=$TOKEN to the URL prefixed by a ? rather than a &. It makes sense:
I hope someone technical at Corona can take a look at this as soon as possible, as I need to specify the fields parameter. [import]uid: 73434 topic_id: 34494 reply_id: 138715[/import]
I assumed you could indicate full Graph URLs (like me?fields=id) in the path argument. That actually works in iOS, but as we have seen fails on Android with misleading error messages.
Anyway, problem solved on my part.
[import]uid: 73434 topic_id: 34494 reply_id: 138767[/import]
The problem is with facebook’s Android SDK. We provide the Graph API string as-is to facebook’s SDK, but their SDK doesn’t support URL parameters in that string. Instead, they want to receive the parameters separately via an Android “Bundle” object, which is a dictionary/table. This is why our Corona facebook API defines a separate argument for receiving a table of parameters.
I didn’t realize facebook’s iOS SDK supported parameters both ways. That surprised me. [import]uid: 32256 topic_id: 34494 reply_id: 138890[/import]
This way of getting the fields should be in the doc I think, I was also mislead into trying to do “me/?fields=id,email” instead of the correct way ( at least for android )
This way of getting the fields should be in the doc I think, I was also mislead into trying to do “me/?fields=id,email” instead of the correct way ( at least for android )