Using forms to connect to Facebook in Android? - android

While using the Facebook SDK for Android, I realise Facebook uses their own dialogs with forms so the user can enter their information.
Is there a way to use my own forms and send the data to Facebook to authenticate? Or do I have to use theirs? If so, is that the same case for uploading pictures, posting on your wall, comment, etc.

I'm not sure about uploading pictures, but I ran into the same problem some time before with the forms and after a lot of research reached the conclusion that you have to use their forms. The only application AFAIK that uses custom Facebook login on Android is Facebook for Android (official application).
You might be able to figure out a way by tracing the URL that is being used by Facebook for authentication, but those sorts of hacks won't be reliable as Facebook may change the API on you. It sucks, yeah.
Here is some more information, Stack Overflow question Android -> Facebook login without a dialog?.

Related

Can you take the Facebook login connection on iOS/Android App and automatically log a user in when they hit Facebook on a mobile browser? [duplicate]

It's my first posting on here (although I've been using this site for reference for quite some time).
I've been trying for several days now to find or dream up a way to use Facebook's "Single Sign On" from within a mobile web app (not a native iOS or Android app) to automatically sign a user into a web app if they are already logged into Facebook from the native Facebook app on their mobile device for example.
My limited knowledge is telling me that it can't be done since the mobile browser and the 'system' (iOS for example) are too separated (I can't, I don't think, have my mobile web app use or access the native Facebook app on a mobile device in any way).
I have found and read the iOS, Android AND Mobile documentation provided by Facebook (https://developers.facebook.com/docs/guides/mobile/) which all seems to make enough sense, but after days of trawling through everything else I could find on the subject there doesn't seem to be a way to use, for example, the Facebook app on an iPhone or Android device to automatically log a user in to my web app if he/she is already logged into Facebook.
I've read lots about doing this from within 3rd party native apps and also other people trying to achieve a similar thing from within Desktop apps but I'm trying and hoping to be able to achieve this from a web app running within a mobile web browser.
I'd be very grateful for any help, opinions or pointers in the right direction since I think this would be an excellent step forward in UI for mobile web apps to have (not just the native apps).
Many thanks in advance...
Probably a bit late to the party but in case anyone else is wondering yes it's possible with Cordova/Phonegap and the Facebook Connect Plugin: https://github.com/davejohnson/phonegap-plugin-facebook-connect/
Using the FB.getLoginStatus() method at startup allows to check if the user is already signed in with the native Facebook App and retrieve its profile. More details in the examples provided in the repo.
I have not yet implemented it myself, but seems possible according to:
http://developers.facebook.com/docs/mobile/web/build/#login

Android share intent vs actual Facebook integration

I am going to integrate "facebook sharing" into an app. Basically a timeline post with a link and an image and text.
What is the difference between an elaborate Facebook 3.0 integration vs using the Android OS' share intent with certain parameters, where the latter allows users to choose between apps such as Facebook and it just works if the app is configured to use that intent.
The only difference will be a one line of code that will work with thousands of different app (and other social network) Vs bloating your app with Facebook SDK, hours of work, pain, bug for a less clean result.
;-)
Edit:
The Android Intent will also allow people to share on Twitter, Google Plus, and other websites if they don't like Facebook.
See this Facebook bug report, I guess you have to do it with the Facebook SDK.
Since they only allow posting a link with the share intent.

Reading Facebook Statuses In Android

was just curious as to how I can go about reading Facebook status posts from a particular page through my Android application.
I looked into the Facebook API but that seems to be more related to making Facebook applications, which wasn't my intent.
If anyone can point me in the direction of a guide or link that will explain to me how to do this it will be much appreciated.
Well the whole idea of the Facebook API is so that you can call their functions to give you access to Facebook content. If you want to incorporate them into your Android Application, try using their Android SDK

Facebook and twitter integration with my android application

I saw some topics here regarding facebook and twitter integration with Android Application.
I need help regarding, is twitter integration with Android App possible in real??
[I need to tweet on user's wall and all]
If i wanted to integrate Facebook with my App then whether i go as per explained in following link(and if this is the recommended way then how to implement this SDK):
http://forum.developers.facebook.net/viewtopic.php?pid=146956
or
else i use Android facebook SDK available here on code.google.com
The official facebook SDK for android is here:
http://github.com/facebook/facebook-android-sdk/
It includes complete examples of use.
I need help regarding, is twitter integration with Android App possible in real?? [I need to tweet on user's wall and all]
In real? Of course! You could be able to tweet on the user's timeline. In this case, use the appropiate authentication methods. There are many ways to do so, this is one of them:
http://www.androidsnippets.org/snippets/24/index.html
You can also use specialized third-party libraries (like twitter4j) to use Twitter from your Android app.

Android connecting to Twitter

I'm learning Android and I'm trying to connect to Twitter and upload a photo in Android. How can I do this?
This question gives you a hint on how to use an Intent to start a Twitter application and use it to to post something. In this way the user don't have to give your program the twitter credentials.
If you want to connect to twitter yourself you can use one of the java twitter apis that are out there.
I hope this is a starting point. If you encounter more specific problems come back and we will be glad to answer them.
For a general howto on Android check out the hello world application and all the other tutorials on the android developer pages.

Categories

Resources