How to implement chat in an app which uses facebook-ios-sdk - iphone

I am developing an iphone app which uses facebook-ios-sdk. For chating i used quickblox sdk. But it results a mac-o-linker error. Is there any other sdk fot chat ?

I have one idea why you have this error: QuickBlox iOS SDK & Facebook SDK - both of them use SBJSON lib. Solution - try to delete SBJSON from your project(from Facebook SDK src) (also remove all #import constructions, that use SBJSON) and try build your project.
Hope this topic helps to resolve this issue http://community.quickblox.com/quickblox/topics/json_functions_not_available
Also, please look at this project src https://github.com/QuickBlox/ChattAR-ios - project featuring Facebook API, Location, Chat and Augmented Reality view. It uses QuickBlox SDK & FB sdk. And both of them work well.

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.

How to integrate Facebook sdk in titanium for ios and Android?

Hi am working on an app Using Appcelerator Titanium, in which i have to integrate Facebook sdk. i am so confused on using which sdk have to use .. whether choose the ios or android or javascript sdk. Another query is , whether if have to create a separate project for ios and Android. or a single project is enough. Thanks in advance
You can either check the Facebook support shipped with Titanium SDK: http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook
Or you can check out this module on github: https://github.com/appcelerator-modules/ti.facebook

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

New Facebook IOS SDK? Can we use the old sdk with the new sdk?

I am currently adding new Facebook iOS sdk 3.1.1 to my iPhone application. I saw the sdk have significant changes. E.g. My old sdk create a Facebook object and call the requestGraphPath:AndDelegate from the FBRequest object. Now the new sdk have no header file "Facebook.h" and "FBRequest" have no requestGraphPath:AndDelegate but it has a same method name with a handler... and have extra function as well.
Does that mean I have to recoding all the Facebook stuff of my application to accommodate the new Facebook SDK
Yes, you would need to change your code. The latest facebook SDK has iOS 6 integration and lots of other features. Read about it here: https://developers.facebook.com/docs/howtos/ios-6/
Basically in the latest SDK, everything is managed via the FBSession.
This SDK is backwards compatible meaning, even if the users have not upgraded to iOS 6, this will work in iOS 5.