Need To Authonticate User Via Facebook & Twitter(PhonegapAndroid) - android

new to phonegap programing development.having one issue that i need to authonticate user via facebook/twitter & if authontication goes true on basis of that need to upload some image to server..i have stuck on this issue..i could found this one facebook sdk for phonegap android.i have downloaded this one plugin https://github.com/davejohnson/phonegap-plugin-facebook-connect but when implemented it just redirects to facebook page to browser,it dosen't opening popup of facebook login page as we can see in native android application...so any guide for that?
Thanks in advance
Aamirkhan i.

We've recently developed an iOS phonegap app. We had to pull a feed from Twitter (to our Grails server component) and elected to use Twitter4J as it simplified the process. Here's a code example on the Twitter4J site focussed particularly on authentication. Hope it helps. Good luck!

When you get redirected to the web page instead of the popup it means that the facebook app is not installed on your phone. This is unfortunately necessary now with the new FB jar.

Related

App that reads and writes to Facebook

I want to create an app that allows a user to post to Facebook, but I want this to view posts by other users using the app, so basically a blog app in between friends using the app. How do i go about doing this, what API's do i use?
You Need to Checkout,how Oauth2 Works and check the Facebook Sdk for android and ios,there is a sample application in the sdk package,try that it will help and make you know how to use it in your application.

Error : Sorry this page not available on facebook

I have just integrated the facebook SDK in android native app, I created a app on facebook dashboard to integrate a facebook SDK in android native app.
I am successfully posted the message on the facebook through my android native app, it shows my app name "Sooligan", when I am clicking on this "Sooligan" it is redirecting to me on page not available.
Please see attached screenshots.
Clicking on Sooligin it is redirected to below page
Guys any way to solve this problem so that it should open any page which I want or anything related to that
Under Basic Info in your app settings on Facebook you will need to set your Canvas URL. When that page is called it will send the variable fb_source which will tell you if it came from the application or your facebook page, etc. You can then choose to redirect it however you want (if you want to).
I solved this simply add the website in the platform also, there I have added my website URL which I want to open for ex : www.google.com

Android Facebook SDK 3.0 Integration with application to Post on Wall

In Android project trying to have a button to post on wall in facebook by user. When that button is clicked need to check whether user is already logged in using other facebook app if so i need to open Post On Wall Dialog with prefilled data to be shared. Please direct me in this to achieve.
I tried following this tutorial http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/
but after asking for user credentials in a webview the page navigates to main activity instead of opening the post on wall dialog. Thanks in advance.
Have you tried using the Facebook SDK website? Try looking at the below two links on the Facebook SDK website:
How to log in:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/
How to publish to a feed:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/
There is also an example application provided with the Facebook SDK 3.0 which can be loaded into eclpise and onto a device for you to better understand how it works (need to add your own APP key of course). There is also the Scrumptious Tutorial on the Facebook SDK site that can run you through everything.
Found here:
http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/

Facebook Login in Android application

I need to create an Android application where user will provide the userid and password of the facebook then he will login inside the application.
For this I want to use my own LoginPage.I want to create Loginpage using android layout standard.
I am not able to achieve it in my own way.
Any help will be highly appreciated
This is a good start : http://developers.facebook.com/docs/guides/mobile/android/ and http://developers.facebook.com/docs/reference/androidsdk/authentication/
You can create your own login page using the login activity template provided in the Android SDK. See this link to there website for more information. I used this template myself for an application I am developing and found it very helpful.
However, as far as I understand, if you want Facebook Integration you need to use the proper authentication page. To do this you need to download the Facebook APK. The Facebook developers page details the steps to implement such a login process in Step 6 of their Getting Started with the Facebook SDK for Android site

Like button and Phonegap app

I'm trying to integrate Facebook 'Like' button into my Phonegap app (iOS and Android).
The easiest way is to c&p the same code as for simple web site:
<iframe src="http://www.facebook.com/plugins/like.php?..."...>></iframe>
It works perfectly (just like for normal web site) if user already logged in.
But if I log out from FB and then try to tap "Like" button I will be redirected to the FB login page and bad thing is that this page will be opened in new native browser window. So, after login it will not redirect me back to the app.
And also, if there is a way to open login page inside my app I think there still will be a problem with redirecting back to my app from FB (i.e. redirect to the local .html file)...
So, is there ANY way for Phonegap app to integrate with FB 'Like' feature somehow?
I don't think this is possible yet. The PhoneGap Facebook Connect plugin has promise, but at the time of writing this it still has a few niggles that would stop me deploying it - it's only been released for a week or two and it seems to have broken so second and subsequent logins to an app won't work. It seems like it will be really useful soon, but it's more volatile than even the standard volatility level of most Facebook integrations as it stands. Getting it to build against PhoneGap 1.1.0 yesterday also involved digging through issues in github and patching the Facebook SDK... so you'll have fun with that.
As far as I can see it doesn't support dialogs or social plugins yet, though for the base Facebook Connect use case it does solve the problem where Facebook users can be redirected out of your PhoneGap app to login either in the FB app or Safari and then bounced back into your app afterwards. It sounds like the plugin authors are working on more features, so I'll be keeping an eye on the project.
It sounds like you need the PhoneGap Facebook Connect plugin:
https://github.com/davejohnson/phonegap-plugin-facebook-connect
From the README:
"The Facebook Connect plugin for PhoneGap allows you to use the same JavaScript code in your web application as you use in your native PhoneGap application, but your native PhoneGap application will use the Facebook native app to perform single sign on (SSO) for the user."

Categories

Resources