Please update Facebook Plugin for PhoneGap Build

  • 6
  • Problem
  • Updated 7 years ago
  • Solved
PhoneGap 2.4+ apparently uses NSJSONSerialization, and so returns objects now as immutable. This causes a bug in the Facebook Connect plugin that doesn't allow an app to post to the users wall or a friend's wall. After it attempts posting the app crashes and the following error appears in the console:

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFDictionary removeObjectForKey:]: mutating method sent to immutable object'


A fix has already been merged into the master branch of the plugin on GitHub. Details are on this Stackoverflow post. Here is the specific branch merged that fixed this issue.

Can the PhoneGap Build team please update the Facebook Connect plugin to the latest version?

I am having this issue with my app. It is critical to me that this get fixed, because I had to upgrade to PhoneGap 2.5.0 to be accepted by the App Store, but now my app can't post to users' facebook walls, which is a key part of my app's functionality.

Any thoughts on when the plugin will be updated? Or better yet, just tell me it has been updated. :)

Also, I'm anxiously awaiting the release of PhoneGap 2.7.0 for Build to be able to get rid of my splash screen being moved down on iOS.

Thanks!

-Mark
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
  • wishing this already worked

Posted 7 years ago

  • 6
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hey Mark

Issue has been created at the following URL.
https://github.com/phonegap-build/Fac...

Hopefully our developers can provided the fixes soon.

Thanks!
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
Thank you Amir!
Photo of Nicholas Juntilla

Nicholas Juntilla

  • 32 Posts
  • 0 Reply Likes
Please see this stack overflow thread:

http://stackoverflow.com/questions/14...

I was having this issue with my app crashing catastrophically when trying to post on facebook after upgrading to phonegap 2.5.0. I am very close to being able to submit, but I've read I need to be using phonegap 2.5.0 and right now my app is crashing when trying to share a facebook wallpost. I believe the version of the facebook plugin compiled into build.phonegap.com does not include this update. Please help!

Thank you!

This reply was created from a merged topic originally titled
Your Facebook Plugin is Out of Date!! Cordova has Updated the Facebook Plug In, but Phonegap has not! Help!.
Photo of Mark Rummel

Mark Rummel

  • 22 Posts
  • 0 Reply Likes
Nichola and I asked this 5 days ago on GitHub, but have not heard a response yet.

What is the expected timeline for updating the facebook connect plugin for PhoneGap Build and resolving this issue?

Here is the open GitHub issue for this: https://github.com/phonegap-build/Fac...

We both have apps that are ready to be released except for this issue. Please give us a timeline or let us know it is already fixed.

Thank you!

-Mark
Photo of Nicholas Juntilla

Nicholas Juntilla

  • 32 Posts
  • 0 Reply Likes
Anything?
Photo of Bostjan Kovac

Bostjan Kovac

  • 2 Posts
  • 0 Reply Likes
I also came across this problem when I updated to 2.5.0 and went on 2.7.0 later on.

I'm in pretty similar situation as the app is almost done, except for this issue.

Hope the Facebook plugin will be updated soon?

Thanks.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
I have received an unofficial news from last meeting where this could probably be fixed by next week and deployed by June, Week 2 at the latest.

Sorry guys, that's all I have for now.

Thanks
Photo of Joseph Cutrono

Joseph Cutrono

  • 6 Posts
  • 0 Reply Likes
We are past week 2. Any further information on this issue?
Photo of Rafael Diaz

Rafael Diaz

  • 29 Posts
  • 0 Reply Likes
Is it possible to give some estimation, when is this update coming?

Would it make sense to downgrade to version 2.5.0 until this problem
is solved?

Thanks a lot in advance for your feedback,

Rafael Diaz
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hey guys

Update: Problem are mostly related to Cordova FB Plugin and not necessarily Build service. We are now working closely with the Cordova team to provide the fixes for next update.

Thanks
Photo of Joseph Cutrono

Joseph Cutrono

  • 6 Posts
  • 0 Reply Likes
Oddly enough I got a build last night and things seem to be working. Is that official? Can anyone else confirm?
Photo of Bostjan Kovac

Bostjan Kovac

  • 2 Posts
  • 0 Reply Likes
Yes I can confirm that it's now working.

I've also been waiting this and Brett Rudd posted a comment on projects' git to confirm that the problem is solved with the latest update.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Changes has been applied:
https://github.com/phonegap-build/Fac...

Thanks
Photo of Hyginus Ugwumba

Hyginus Ugwumba

  • 1206 Posts
  • 42 Reply Likes
Hi

Issue up to 7days without response will be close.

Thanks

This conversation is no longer open for comments or replies.