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

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.

I was hoping this would be a temporary facebook issue but it’s still not working this morning :frowning:

Well I’m at my wits end with this - 99.9% sure it’s not my code. Anyone else who posts local images to facebook within their app having any luck?

I didn’t see anything on the Facebook developers blog. 

Rob

Hmm…something must have changed. Code that worked previously just, well, isn’t.

I have a valid access token, I can make normal posts to the wall, I can make posts with a remote image, but posting to me/photos just isn’t happening.

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).

Nick, I’m having the same issues with response of  “Error: HTTP status code: 400”, facebook error code 5 for iOS.

​I can use the same code to post images to Android fine and also post a message fine on iOS and Android but no matter what I try I cannot post an image to Facebook via facebook.request( “me/photos”, “POST”, attachment ).  

Corona, it’s definitely broken for posting local photos on iOS.  Nick is right.  Needs fixing fast please as I can’t send my app for approval until fixed.

I can post messages both on iOS and Android and post a local photo on Android using the example code.

I even created a new Facebook app with different app ID.  Still the same.   “Error: HTTP status code: 400”, facebook error code 5 for iOS.

It’s not the setup in the Facebook developers page otherwise I wouldn’t be able to send a message on iOS or both message and local photo on Android.

I’ll check with Engineering, but according to the Facebook Graph API, the source needs to be a multi-part/encoded image and I don’t know how we are uploading the images.  All the examples show using URL’s of an already uploaded image so I couldn’t really determine what they want.

Do we know when this broke?  Was it a particular version of Corona SDK that worked and stopped?

Thanks

Rob

Actually in retrospect, can one of you go ahead and file a bug report.  Regardless if this is a Corona problem or a Facebook problem, we need to adapt to it.

Rob

It was working with any version of Corona up til about 10-14 days ago. Now it doesn’t matter which version I build with it doesn’t work, and apps that were built months ago also fail.

Okay, make sure to include that information in the bug report.  Post the bug report number back here.

Thanks

Rob

Bug Submission: 31671

I still have apps that were built with 2013.2100 that still post fine (before FB was a separate plugin). When I replace them with an app built with anything current (2014.2223) the same code will not post and I get the com.facebook.sdk error 5.

I’m also experiencing this problem.

I am also experiencing this same issue:

iPhone testApp[1408] \<Warning\>: Error: HTTP status code: 400

 Got a reply back from my bug submission saying the Issue has been fixed and will be available in daily build 2014.2225.

Fingers crossed :slight_smile:

As soon as it’s available I will test and post back results confirming if fixed.

Thanks Corona for fixing this :slight_smile: