Is there any support for using Facebook SDK in Flutter? - flutter

I would like to add the Facebook app-events to my Flutter project :
https://developers.facebook.com/docs/app-events/android
https://developers.facebook.com/docs/app-events/ios
It relies on the Facebook SDK. However, it seems that there is no available plugin for the Facebook SDK integration in Flutter.
May I know should Flutter users implement their plugin to use the Facebook features?
Thanks!

At the time of answering this, there is currently no official plugin or package from the Facebook team.
But I had the same needs as you, so I wrote and published a plugin: facebook_app_events
It supports codeless app events as well as implements most of the App Events SDK.
Hope that answers your question and needs.

Related

Track Events using Facebook SDK on Nativescript App using nativescript-facebook plugin

I am trying to connect the an app built with Nativescript-Vue with Facebook to set up ads and track the performance. I am reading through the documentation of https://github.com/NativeScript/nativescript-facebook but have not found how should I implement the tracking features (specifically Track App Installs and App Opens). Does the plugin work for events? Thanks.-
I also see that the official facebook Quick Start for iOS SDK tutorial, includes some xml for iOS that it is not included in the plugin docs:
<key>FacebookAppID</key>
<string>XXXXXXX</string>
<key>FacebookDisplayName</key>
<string>XXXXX</string>
Any idea why?
Thanks!
The plugin do not implement events yet. But you may do it by accessing the native apis on the iOS / Android SDK.
Learn more about accessing native apis for iOS / Android from JavaScript in the docs.

Creating native plugins to implement missing functions of the official Unity Facebook SDK

I want to give the possibility to the players of my game, to publish to their Facebook feed images and videos stored on their device.
The Facebook SDK does not seem to provide this feature through FB.FeedShare. Only already hosted media can be referenced in the mediaSource field.
Several questions have been asked about this subject (1, 2, 3)
However, the Android SDK and iOS SDK does provide it. Isn't the Facebook SDK a simple "abstract layer" wrapping the native SDKs? Why all the native SDK features haven't been implemented?
I know an alternative solution would be to upload the media using the Graph API and reference from the FB.FeedShare function.
EDIT: As mentionned by #misorude, the publish_actions permission has been removed
TL;DR
Is it possible to create the Android and iOS plugins that would call the native functions used to share a media stored on the device of the users?
If so, do you know how is it possible to "reference" the native Facebook SDKs without bundling them into the plugins I will create? (Since they are already in the Unity Facebook SDK in my project).
EDIT: Seems like someone already tried to create a wrapper, but "it didn't play nice"
I am also open to other suggestions. My final goal is to let the user publish a video. I would love to use intents to open the Facebook app, but iOS does not have such feature.
Thanks in advance.

Can I use the JavaScript facebook SDK for phonegap apps?

I am not sure whether my question is appropriate or not.
I am integrating facebook for the first time and also for the for first my app is multi-platform.
I am integrating facebook in my app for iphone and android.My question are below:
1)If i am doing it with plugin i have to do it separately for both iPhone and Android. Is there any way to integrate Facebook for both in a single effort for eg by using Javascript SDK
2)If yes what it is? and if possible any sample.
Thanks in advance
You should use phonegap-plugin-facebook-connect. It works on both iOS and Android and integrates great with iOS6 bulid in Facebook functionality.
The plugin provides a patched version of the Facebook JS API.

share to social iphone native code

I want to share messages to social networks from my phonegap application. For that i m creating plugin for iphone and android.
i found code for android:
String message = "Text I wan't to share."
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(share, "Title of the dialog the system will open"));
But i can't able to find code for iphone.. can you please help me?
You can use FacebookConnect plugin authorise by Phonegap team.
This plugin provides a simple way to use Facebook Graph API in
Cordova.
This plugin is built for Cordova >= v2.1.0 with ARC. Both iOS &
Android are supported with the same javascript interface.
Use can also use Dave johnson's plugin, this also support iOS and Android platform.
The share Intent is part of the Android SDK and not iOS! Nothing like this exists for iOS and you will just have to integrate each social network separately.
You may want to look at this and this for facebook and twitter integration as these are now part of iOS (Twitter was integrated into iOS 5, Facebook in iOS 6).

Facebook App-Application is misconfigured for Facebook integration

I am developing iphone app which shares photos on social networks.For photo sharing I am using "Sharekit".I have created Facebook App and using its api key and secrete.(used correct api key and secret.).
When I try to share image with this app(even simple text),the following error comes.(even the facebook login popup doesn't appear.)
"Sorry,the application you are using misconfigured for Facebook integration.Please download the newest version of the application"
I would have uploaded snap shot but as a new user Stack overflow is not allowing to upload image..Any help will be appreciated.
Thanks.
apparently this problem was faced by me too.
Since i was using their old API methods..
it is really tough to find the cause now..
Although i have not used ShareKit..i believe it is also using the older methods.
I solved the problem by using their official tutorial on Facebook iOS integration
I noticed that the version of sharekit i am using 0.2.1 is pretty outdated one. The project was moved to github and the latest version 2.0 can be found here. The home site is outdated with version 0.2.1 so follow the github link for latest update.
You might want to take a look at Socialize: http://www.GetSocialize.com, which uses the newer methods. Full feature list at http://go.GetSocialize.com/features
Good luck!
DROdio