Facebook Connect vs facebook-android-sdk on Android - android

I am trying to add a social aspect to my app where one can post there results (a common feature).
I have found some sites that describe how to do this using Facebook Connect http://www.mobisoftinfotech.com/blog/android/845/
and others, like the Facebook developer site point you towards using the SDK and downloading through Github.
http://developers.facebook.com/docs/guides/mobile/
Anyone have any experience with this? What is the difference between the two options and which is better for apps?
All the other questions that seem relevant are years old.

I would recommend using the Facebook-Android-SDK for a couple reasons.
It comes from Facebook themseleves. ...Perhaps this is actually a reason not to use it! :)
It uses OAuth for authentication, which is good, and it is pretty easy to use.
The Graph API. It is pretty robust, and also easy to use.
Please note that I have not used FB-Connect before, so I may be a bit biased...

Facebook Connect has been deprecated and you should use the SDK - Integrating Facebook Connect with a Web Page

I have familiary with the facebook-android-sdk I've never had a problem with it and it seems to work very well.
It doesn't really make sense not to use the native SDK unless you are using a webapp imo.
Also I think FBConnect has been deprecated.

Related

React native get access token social networks

I'm working on react-native app project I need to use login with social networks and get access token of each others. I have problems with some packages i need the best way and cross platform (iOS, Android).
I don't know if there is a one-for-all solution to this problem that integrates well with RN. I've been recently working with the Facebook SDK, which enables Facebook Login in your application. It's fairly easy to set up, and it might be a good starting point for you. As for other social networks, I'd suggest you go over each one and find a way that does the job. Here are some packages that might help you:
LinkedIn
[Instagram]
(https://js.coach/all/react-native-instagram-oauth?search=instagram)
Google
This also might be worth a shot: react-native-social-auth

Implement google/facebbok login for an android app

what is the simplest way to implement google/facebook login for an android app?
I'm bamboozled by all the different ways. Some online examples look outdated, and some I'm not clear when to use one over the other.
This is an opinion questions, so I will give you mine. The easiest way is to use the SDK's provided by Facebook and Google directly and follow their online tutorials. I have tried many different solutions, and find that at the end of the day, the cleanest and most extendible approach is to implement the vendor-provided SDKs directly (it also makes upgrading easier, and makes you less dependent on 3rd party restrictions).
Google integration guide:
https://developers.google.com/identity/sign-in/android/start-integrating
Facebook integration guide:
https://developers.facebook.com/docs/facebook-login/android

SalesForce with Android?

I want connect sales Force from my Android Program please suggest which one is correct way to achieve this I am new to sales Force I have some knowledge in Android Application Developement.
Thanks in Advance.
You definitely want to use the REST API for mobile apps. The SOAP API is really heavy, and is better for Server-to-Server integrations. The best way to get started building an Android app for Salesforce.com is to take a look at the Salesforce Mobile SDK for Android:
http://wiki.developerforce.com/page/Mobile_SDK
There's a very helpful getting started PDF linked on that page.
However, the SDK is meant mostly for starting new apps, so you'll have some work ahead of you integrating it into an existing application. The main things you want are the oAuth 2.0 User-Agent login and REST wrappers.
You may also find this app useful -- I put it together for a presentation at Dreamforce '11, which was shortly before the Mobile SDK for Android came out, so I wrote the oAuth and REST stuff myself. Might be a simpler starting point for you.
https://github.com/tomgersic/DreamforcengerHunt
Hope that helps!
You can either use the RESTful interface or the SOAP webservices. The latter is a bit easier to deal with IMHO.
Under setup in salesforce, download the partner or enterprise WSDL (partner = generic, enterprise = specific for your SF-instance). Now with wsdl2java you can create Stubs for those wsdl entries. Import those into your android app and use them. See here for a Java Exampe by Salesforce.com.
Be sure your user has the permission to "do API". You might want to look into SSO if you want to make a "production"/commercial app. Also, to login, remember to use the correct password, you might need to add the API key (generate using the Setup tab in SF). Hope this helps.
Try checking out some of the open-source SDK projects the developer evangelists have added to the forcedotcom github
Lots of good examples on different platforms, including android with phonegap/html5 and a native SDK for android (iOS and Android) to get you past authentication and onto building your app.
Salesforce Provides mobile SDK for development on mobile device, here is the link for android SDK:
http://wiki.developerforce.com/page/Getting_Started_with_the_Mobile_SDK_for_Android
You need to:
Download SDK.
Add a sample project included in SDK's native/SampleApps folder(make sure you check include to the workspace while importing the project).
Get your remote access form salesforce and update in your app.
--This should get you started with a sample app form salsforce.
After this you need to modify existing code to your own code.
You can go to trailhead and start browsing on it, while working with your own application you will have to learn a lot about smartStore and smartSync,
I did implemented A smartStore App with using salesforce as database provider, if you want i can upload it to drive and share a link to you and
if you have any doubts about using or understanding the flow be free to ask..

Android & OAUTH 2.0

I cannot work this out to save my life!
So, I have a Codeigniter based REST api with an OAUTH 2.0 (draft 23 or something) server for my own auth system (not using Twitter or FB)
I want to be able to use this to allow users to "log in" to my Android app.
I can't find any information about this on the internet anywhere. There are a couple of unsupported OAUTH 2.0 client libraries out there, such as Leeloo (which moved to Apache Amber, which hasn't been updated for over a year, and there have been no releases under Amber).
My questions therefore are:
Is OAUTH 2.0 too new? It seems to be a couple of years old... is it still too new to work with. Should I be using OAUTH 1? (which seems to be unsupported anyway - all the codeigniter OAUTH 1 libs have moved to 2.0).
Should I be using a completely different technology? e.g. I have heard of "xauth". Again information on this seems to be pretty sketchy.
Is it something easy enough to do myself? It doesn't appear so, but do most people just create their own homebrew solutions? I can't find much info about this either.
Any help you can give me will be great. Any resources you can point me too as well will be pretty amazing.
Thanks for your time.
No, OAuth 2.0 is old enough to be supported by some good open source libraries. You could e.g. use scribe.
Sorry, I don't know enough about XAuth yet to help you with that.
Yeah, it's really easy using scribe. To support a custom Provider you simply have to extend org.scribe.builder.api.DefaultApi20. As your using the same Draft of OAuth 2.0 as Google does, you can use the implementation for the Google API in Thomas Bruyelle's fork of scribe as a blueprint. This article should get you started for using scribe with Android. You could further check out the Google example from the scribe fork here.

How to integrate forum into application?

I have a website that has a forum with users. I would like to integrate this functionality into my application? How would i go about doing this? If anyone has some instructions to start with that will be great. Or a tutorial some where.
Add a webview and try to make a mobile friendly version of your forum. You can also call the web browser.
It will save you a lot of trouble.
I know this app forum sdk that provide a native library and bundles to enable a forum in your app. Much faster and quicker response than webview.

Categories

Resources