I cant post a photo when logged in using the FACEBOOK CONNECT example

when i use the native facebook app and is logged in.i can go to my wall click ‘photo’ and it activates my android phones galleries so i can upload from my phone’s album.

now, i log in using facebook connect (corona example)…go to my wall and click photo, but it doesnt access my phone’s pictures. instead it activates the ‘status’  beside it. i can post texts to my wall, but no pictures!
 

what;s happening?

The Facebook sample app is not a 100% copy of Facebook. It does things differently.  The assumption with sample code is that you’re going to look at it to see what it does.  

What our sample does when you press the photo is upload a photo from the app’s resource directory and post it to your timeline.  If you want, you can change that button’s behavior to bring up the camera picker (see media.show() http://docs.coronalabs.com/api/library/media/show.html) and in the completion listener for that function you can take the resulting photo and using the current post photo code upload the photo.

@Rob

brilliant suggestion sir… i was thinking, maybe this has something to do with ‘facebook permissions’?? i think i need permission to click “photo”? do we have a code to activate this?

@Rob

this is the screenshot… notice the ‘lock’ image beside my name… i think that means i have no permission to access basic info? or post a photo

*check the image
 

[sharedmedia=core:attachments:853]

thanks guyz! hope i get over this finally

I have no idea what that means.  It has nothing to do with your app as far as I know.  When your corona app logs in, it gets its own permissions and has nothing to do with the native app’s settings.  What happens when you tap on the lock?

I’m greeted with a white screen as soon as i log in saying this

“the page you requested cannot be displayed right now. it may be temporarily unavailable, the link you clicked may be broken or expired, or you may not have permission to view this page.”

Since there’s a ‘lock image’ im guessing it has something to do with permissions… when im using the native FB, everything’s fine, I have problems when i log-in using the corona app

need a screenshot?

Have you read this blog post yet?

http://www.coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

It has very detailed explanations of the Facebook login process.  The lock in your native app screen shot I don’t think has anything to do with this.  It’s more likely your app isn’t setup to talk to Facebook correctly.

i thnk i followed that, was able to generate a hash key which u confirmed in my PM before. .
i read something about

login()

logout()

login()

maybe this works? i think u discussed this somewhere with aukStudios here in this blogpost:

http://forums.coronalabs.com/topic/37679-facebook-frustrations/

. in the login-logout-login technique with facebook, aukStudios mentioned that “basic_info” must be accessed first, before extended permissions like “publish_actions” is executed. so maybe this is my prob. i need to tell my corona app to acess my “basic_info” first so it will give me permission to post a photo …thing is i dont know how to tell corona app to access my “basic_info”

The login-logout-login was needed on Android before we made some changes.  You should not need to do this now on either iOS or Android.  Just ask for publish_actions when you first login.   For multiple privs try:

“publish_actions, email, basic_info” etc.  Tough basic_info is implied with publish_actions.

so how does the line go??

facebook.login(appId, listener, {“publish_actions, basic_info”}

like that??

facebook.login(appId, listener, {“publish_actions, basic_info”} )

Need that paren on the end.

@Rob

thnx mr.Miracle. will keep u updated on how things will turn out :D  thnx a bunch really. i hope this is the Holy Grail to this quest for facebook connect stability. AMEN

CORONA ROCKS!

The Facebook sample app is not a 100% copy of Facebook. It does things differently.  The assumption with sample code is that you’re going to look at it to see what it does.  

What our sample does when you press the photo is upload a photo from the app’s resource directory and post it to your timeline.  If you want, you can change that button’s behavior to bring up the camera picker (see media.show() http://docs.coronalabs.com/api/library/media/show.html) and in the completion listener for that function you can take the resulting photo and using the current post photo code upload the photo.

@Rob

brilliant suggestion sir… i was thinking, maybe this has something to do with ‘facebook permissions’?? i think i need permission to click “photo”? do we have a code to activate this?

@Rob

this is the screenshot… notice the ‘lock’ image beside my name… i think that means i have no permission to access basic info? or post a photo

*check the image
 

[sharedmedia=core:attachments:853]

thanks guyz! hope i get over this finally

I have no idea what that means.  It has nothing to do with your app as far as I know.  When your corona app logs in, it gets its own permissions and has nothing to do with the native app’s settings.  What happens when you tap on the lock?

I’m greeted with a white screen as soon as i log in saying this

“the page you requested cannot be displayed right now. it may be temporarily unavailable, the link you clicked may be broken or expired, or you may not have permission to view this page.”

Since there’s a ‘lock image’ im guessing it has something to do with permissions… when im using the native FB, everything’s fine, I have problems when i log-in using the corona app

need a screenshot?

Have you read this blog post yet?

http://www.coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/

It has very detailed explanations of the Facebook login process.  The lock in your native app screen shot I don’t think has anything to do with this.  It’s more likely your app isn’t setup to talk to Facebook correctly.

i thnk i followed that, was able to generate a hash key which u confirmed in my PM before. .
i read something about

login()

logout()

login()

maybe this works? i think u discussed this somewhere with aukStudios here in this blogpost:

http://forums.coronalabs.com/topic/37679-facebook-frustrations/

. in the login-logout-login technique with facebook, aukStudios mentioned that “basic_info” must be accessed first, before extended permissions like “publish_actions” is executed. so maybe this is my prob. i need to tell my corona app to acess my “basic_info” first so it will give me permission to post a photo …thing is i dont know how to tell corona app to access my “basic_info”

The login-logout-login was needed on Android before we made some changes.  You should not need to do this now on either iOS or Android.  Just ask for publish_actions when you first login.   For multiple privs try:

“publish_actions, email, basic_info” etc.  Tough basic_info is implied with publish_actions.