Facebook - share photo via me/photos request has broken?

Just to let everyone know that I have tested the latest daily build 2014.2228 and it has fixed the issue.  Without changing any code my app sent an image as expected to my Facebook photos via a screenshot.

That’s great. I’ve tried the latest daily build and it does work. What to do if I want use the stable/public release?

Also, I’m gettings this error in the iOS Simulator Log (public and latest build):
<Error>: HID: The ‘Passive’ connection ‘MyAppName’ access to protected services is denied.

Is this normal?

@frisky did you forget to change "MyAppName" to your actual real app name somewhere?

@frisky

That error appears when your settings>Facebook has your app turned off under ‘Allow these apps to use your account’.

Go into settings>Facebook and allow your app.

It might not work on iOS simulator, as I’ve never tried filling it from iOS, so I would possibly dismiss this error.

The problem is not "MyAppName". I’ve changed it for this forum post.

FB posting has always worked with the iOS Simulator. It’ works with the daily build. With the public release I’m getting the facebook error code 5 and the “Error: HTTP status code: 400” in the Log. Will try tomorrow with an iPhone.

This is happening in our app, which has been on the iTunes store for over a year.

For iOS, Facebook is a plugin so the build version doesn’t matter.  If this change impacts Android, you will probably need to run a build since the patch.

Tested on an iPhone. The latest public Corona still gives the facebook error, code 5. With the daily build it works fine.

I also found something else which might be interesting. If I update my app with the new version (built with public), then photo posting works. If I do a fresh install, the fb error code 5 appears. If I do a fresh install with the daily build it works, no problem.

The previous version of my app (which I update) was build with the previous public corona build.

So there is some issue with the current public corona build.

Engineering doesn’t always provide  us with details on what the fix was.  I’m assuming it was in the plugin, but it very well could have been in the core, in which case, you will need a later daily to build.  It seems that’s working correctly.

Hello All,

I have same issue and using latest build 2014.2300. I’m using below code for posting.

&nbsp; local attachment = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "Awesome Game! Scored ", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source = { baseDir=system.DocumentsDirectory, filename="fbScoreGroup.jpg", type="image" }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( "me/photos", "POST", attachment ) &nbsp; facebook.login( appFBId, listener, { "publish\_stream" } )

Same code working fine for all android Devices. but throwing com.facebook.sdk 5 error.

Its being TWO days of working on it.

I have review all your documents and reading all forum posting for it since last 2 days. And I’m disappointed that this normal thing is not working, even you have said its FIX. I have tried with 100 of solution using all directory Or jpg/png, but this not working for me.

It causing delay in app publishing. Can some one please provide me solution for it. Also my request is: I have tried all the things as forum and documents suggested.

If you will say for BUG posting, I have done it.I don’t know from where i can get bug number.

Thanks.

The bug number was emailed to you.

Have you tried building with the sample app?

Rob

I just tried this with the latest daily build, and posting photos did not work at all for me, even though it worked in the past.

Does anyone have a small sample app that might help prove that this actually works in the latest daily build? I’m attempting to post a photo to my me/photos area on Facebook, using a photo from the system.ResourcesDirectory (with a short message, of course).

Hello All,

I have same issue and using latest build 2014.2300. I’m using below code for posting.

&nbsp; local attachment = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "Awesome Game! Scored ", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source = { baseDir=system.DocumentsDirectory, filename="fbScoreGroup.jpg", type="image" }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( "me/photos", "POST", attachment ) &nbsp; facebook.login( appFBId, listener, { "publish\_stream" } )

Same code working fine for all android Devices. but throwing com.facebook.sdk 5 error.

Its being TWO days of working on it.

I have review all your documents and reading all forum posting for it since last 2 days. And I’m disappointed that this normal thing is not working, even you have said its FIX. I have tried with 100 of solution using all directory Or jpg/png, but this not working for me.

It causing delay in app publishing. Can some one please provide me solution for it. Also my request is: I have tried all the things as forum and documents suggested.

If you will say for BUG posting, I have done it.I don’t know from where i can get bug number.

Thanks.

The bug number was emailed to you.

Have you tried building with the sample app?

Rob

if fbCommand == POST_PHOTO then

display.save(display.getCurrentStage(), “test.jpg”, system.DocumentsDirectory)

local attachment = {

message = “test”,

source = { baseDir=system.DocumentsDirectory, filename=“test.jpg”, type=“image” }

}

timer.performWithDelay(2000, function() 

facebook.request(“me/photos”, “POST”, attachment)

end)

end

I edit sample code and tried with public build 2189 still got “facebook.error 5” on iPad 2

but it works fine on andriod. i can’t access diary build,

how can i fix this? please help

Facebook changed their rules, you now have to add the permission ‘publish_actions’ to your app on the Facebook developer dashboard, and provide screenshots and a simulator build before they will approve it.

You can add a test user in the dashboard and that will work without this approval.

I have decided to use the social plugin as this doesn’t require any permissions - the user has final control over the content of the message posted to their wall.

@nick sherman

The social plugin does not work with Android/Facebook afaik. Perhaps you are referring to iOS!

No it doesn’t - you can continue to use the old method for that, but the last few posts were asking why they couldn’t get iOS to work.

if fbCommand == POST_PHOTO then

display.save(display.getCurrentStage(), “test.jpg”, system.DocumentsDirectory)

local attachment = {

message = “test”,

source = { baseDir=system.DocumentsDirectory, filename=“test.jpg”, type=“image” }

}

timer.performWithDelay(2000, function() 

facebook.request(“me/photos”, “POST”, attachment)

end)

end

I edit sample code and tried with public build 2189 still got “facebook.error 5” on iPad 2

but it works fine on andriod. i can’t access diary build,

how can i fix this? please help

Facebook changed their rules, you now have to add the permission ‘publish_actions’ to your app on the Facebook developer dashboard, and provide screenshots and a simulator build before they will approve it.

You can add a test user in the dashboard and that will work without this approval.

I have decided to use the social plugin as this doesn’t require any permissions - the user has final control over the content of the message posted to their wall.

@nick sherman

The social plugin does not work with Android/Facebook afaik. Perhaps you are referring to iOS!