Facebook Share dialog causing FATAL EXCEPTION, Android Enterprise

I noticed that they changed the parameter type of that method in later versions of the Facebook SDK as well.

You might also try using the forked Facebook SDK we have on GitHub: https://github.com/coronalabs/plugins-sdk-facebook-android.

This is still in an experimental phase, but it does still support API Level 10, and is currently at version 4.13.1 I believe.

Thank you, setting up Facebook module from this code worked for me!

But isn’t it easier to update facebook.v4 source code with fix for setSuggestions method call, so it would work with 4.5.0 Facebook dependency out of the box?

Any update? Using an experimental version does not seem optimal and I cannot find a plugin.facebook.v4.jar file in it. Unfortunately have no opportunity to build it in my current workflow :frowning:

I don’t know of any reason why you can’t continue to use the legacy Facebook plugin for now. It targets API 2.1 which is the current minimum and should be that way until next August.

Rob

Official facebook docs say that 2.1 will become deprecated starting October 30, 2016

Deprecating doesn’t mean getting rid of now, it usually means getting rid of in the future, here’s your warning. Can you link me to that page?  2.0 has been deprecated for some time and FB got rid of it earlier this month.

Rob

Here it is: https://developers.facebook.com/docs/apps/changelog

They say in the docs, when you click on the value in “Available Until” column:

Version Schedules

Each version is guaranteed to operate for at least two years.  A version will no longer be usable two years after the date that the subsequent version is released.

Version 2.2 was introduced 30 October 2014, so 2.1 will be unavailable starting from 30 October 2016.

As I understood it doesn’t mean it would surely break, but all 2.1 calls will be directed to 2.2 handler mechanism starting from that date.

That’s what happened with 2.0, they were redirected to 2.1

Hey everyone,

 

The Facebook-v4 (now known as simply “Facebook”) plugin is now out of beta:

https://coronalabs.com/blog/2016/10/28/facebook-plugin-update-we-are-out-of-beta/

 

And with that, we’ve revised how to integrate the Facebook plugin into an Android Corona Enterprise project.

 

The previously mentioned Github repository is now the primary method to get Corona’s modified Facebook SDK on Android.

 

We hope that the overhauled procedure is easier to get along with and helps resolve any possible SDK version conflicts:

https://docs.coronalabs.com/plugin/facebook-v4/index.html#android-1

 

Similarly, we’ve added a new Facebook Versioning/Upgrade guide that will hopefully help address other compatibility concerns:

https://docs.coronalabs.com/plugin/facebook-v4/fbUpgrade.html