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

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

Related

How to integrate native blackberry 10 or wikitude SDK with webworks?

I am working on a BB 10 app using Webworks . I have almost completed it but the clients want to implement wikitude SDK for AR . But it only provide SDk for native blackberry 10 . Is there a way to implement wikitude with Webwork . Or a way to implement native code in webworks?
We have not tested or tried using Webworks together with the Wikitude SDK. However our phonegap and titanium plugins (available on github) are built on top of our regular Android and iOS SDK. Without knowing the internals of Webworks I think opening a native View on top of Webworks that runs the SDK should be possible.
Disclaimer: I work for Wikitude.
I believe the answer is exactly what you've suggested in the comment to #wulfgeng's answer. The wikitude cordova plugin for 3.x+ would need to be updated to add a native component for BlackBerry10 (or you could write your own native plugin).

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

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

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.

Facebook API for Mac Application

I'm developing a Mac application to share the files (video, images) to Facebook using the Facebook API.
In the Facebook SDKs & Tools, I can find only iOS SDK (iPhone & iPad), but not the one specific for Mac application. Does it mean we've to use the iOS SDK for the Mac apps too? If so how can I make use of iOS SDK in Mac application? Actually I tried to use iOS, but it was not successful, and not only that even I had to re-install frameworks which I was using for some other purposes too. The error was related to NSString.
Can anyone advise me in integrating the Facebook API for my Mac application?
There is one sample code written by someone.I've seen on internet. Here you go
http://developer.casgrain.com/?p=107