HI I’ve finally managed to get my facebook integration so that I can post comments to a forum and a post to the wall. Pretty good when it all works.
(nb library code in https://github.com/open768/library/blob/master/lib/lib-facebook.lua)
But I have a problem, I’m wondering if this is a problem with the daily build I’m using 2012.861,
which I discovered while break-testing, when I decline the permissions that the facebook dialog asks me, I can not get facebook to show the dialog that re-requests the permisssion - so until the user goes into facebook proper and removes permissions for my app, I cant post from the app.
if doing a
[lua]facebook.login( psAppID, self.fnClosure, {“publish_stream”} )[/lua]
So the facebook login works, but without giving me the publish stream that I’ve asked for.
I’ve switched on app debugging on the device and it gives me the following - showing me that its definitely communicating with facebook
[text]
DEBUG: 14/08/2012 19:32:32: requesting facebook permission
EXTDEBUG: 14/08/2012 19:32:32: {“type”:“session”,“name”:“fbconnect”,“expiration”:1350077913,“phase”:“login”,“token”:“BAAF0SHMw4nABAIZAG3SOYlPOZAqFiIv98adkz8ooZAAVaio4t5wOAq2g2I1tZBIXTJOAeEGSETJhZBBHGivBQYPG70zGkZBYOSeVWyfAsokATQLxxbGbXPTaZCVCZALszZAoZD”,“isError”:false,“response”:""}
INFO: 14/08/2012 19:32:32: cFacebook: login OK
EXTDEBUG: 14/08/2012 19:32:32: cLibEvents dispatching event: onFBLikeStep
DEBUG: 14/08/2012 19:32:32: cFacebook request me/permissions
EXTDEBUG: 14/08/2012 19:32:34: {“type”:“request”,“name”:“fbconnect”,“didComplete”:false,“isError”:false,“response”:"{“data”:[{“installed”:1}]}"}
[/text]
nb if I had the correct permissions it should show up as response.data.publish_stream.
so is this behaviour a facebook library bug? or is there a different facebook graph api I should be calling once logged in to re-request publish_stream?
thankx [import]uid: 74338 topic_id: 29885 reply_id: 329885[/import]