[Resolved] Facebook sign in works via mobile browser but not if Facebook App is installed

One thing that’s missing is your callback function for your request call.

function onRequestComplete( event )  
 --print("onRequestComplete: ", event.phase)  
 if event.isError then  
 print("Facebook request error: " .. event.response.error.message)  
 else  
 print("Success")  
 end  
end  
  
facebook.request("me/feed", "POST", obj, onRequestComplete)  

Now you’re building up your “obj” table just fine. But if there is an error, you won’t know it unless you use the call back and see what kind of error’s you’re getting.

[import]uid: 19626 topic_id: 28437 reply_id: 128951[/import]

it doesnt look like onRequestComplete gets called at all…

is it possible for you to post the code of something that works for you? I have been debugging the code for the last few hours… and getting no where… :frowning: [import]uid: 67619 topic_id: 28437 reply_id: 129045[/import]

Rob,

Thanks for that I will try this and get back to you
Vik [import]uid: 67619 topic_id: 28437 reply_id: 129003[/import]

http://omnigeekmedia.com/templates/

is a working facebook post template.
[import]uid: 19626 topic_id: 28437 reply_id: 129086[/import]

it doesnt look like onRequestComplete gets called at all…

is it possible for you to post the code of something that works for you? I have been debugging the code for the last few hours… and getting no where… :frowning: [import]uid: 67619 topic_id: 28437 reply_id: 129045[/import]

http://omnigeekmedia.com/templates/

is a working facebook post template.
[import]uid: 19626 topic_id: 28437 reply_id: 129086[/import]

Guys…

Once I deselected Deep Linking from the FB app page… it started working… What the???

Rob… thanks for all your help…I can’t believe that was it…

also

you said I should be able to use

facebook.request(“me/feed”, “POST”, obj, onRequestComplete)

but the facebook.request does not have a callback according to Corona

facebook.request( path [, httpMethod, params] ) [import]uid: 67619 topic_id: 28437 reply_id: 129158[/import]

Oops. I figured out why. I’m using a library called:

Module: lib_facebook

– Copyright © 2012 Triple Dog Dare Games, Inc.

In native facebook usage, the call back is set during the login phase and the facebook.request uses the call back in the facebook.login call.

[import]uid: 19626 topic_id: 28437 reply_id: 129163[/import]

Guys…

Once I deselected Deep Linking from the FB app page… it started working… What the???

Rob… thanks for all your help…I can’t believe that was it…

also

you said I should be able to use

facebook.request(“me/feed”, “POST”, obj, onRequestComplete)

but the facebook.request does not have a callback according to Corona

facebook.request( path [, httpMethod, params] ) [import]uid: 67619 topic_id: 28437 reply_id: 129158[/import]

Oops. I figured out why. I’m using a library called:

Module: lib_facebook

– Copyright © 2012 Triple Dog Dare Games, Inc.

In native facebook usage, the call back is set during the login phase and the facebook.request uses the call back in the facebook.login call.

[import]uid: 19626 topic_id: 28437 reply_id: 129163[/import]