Hi, I’m trying to create a chapter in my app where the Facebook posts of my page are shown. I’m changing the facebook connect sample.
I’m able to login but not sure how to handle the response.
Code:
making fb request:
if fbCommand == GET\_USER\_INFO then facebook.request( "myPageID/feed", "GET") end
Trying to get the info on screen:
elseif ( "request" == event.type ) then -- event.response is a JSON object from the FB server local response = event.response if ( not event.isError ) then response = json.decode( event.response ) if fbCommand == GET\_POSTS then statusMessage.textObject.text = response printTable( response, "posts", 3 ) end end
The text disappears and no response is available.
Anyone knows how to handle that?