Can i create smth like this with JavaScript? Thank you very much for help
Create an Android application that allows to: 1. login to user's Facebook account and retrieve friends list. The list should be then displayed as given friend's profile image + username.
Cordova would assist you in developing mobile applications for various platforms using javascript, html css. Here is their site url http://cordova.apache.org/
For facebook related stuff, You can use facebook's graph api.
Related
In my Phonegap Application, I have to fetch Google Advertising ID. For this I have been trying with some plugins which are not working properly. Can any one suggest some plugin for getting Google Advertising ID using phonegap.
Thanks in advance.
An easy solution would be to use this app (or another similar app - several apps exist) on the device you want the ID from:
https://play.google.com/store/apps/details?id=com.t3d.detectdevice
I am currently integrating our cordova app with social networking apps such as twitter, linkedin and yammer. The first two apps provide uri scheme in directly opening the user's profile. E.g. twitter://user?screen_name=SREEN_NAME and linkedin://profile/PROFILE_ID respectively.
Now, I am trying to figure out for yammer. There doesn't seem to have much information in the internet. I managed to download the IPA file and extract the info.plist file. There, it shows yammer:// and it does open the ios app. I played around with the combination for opening a profile but did not have much luck. I am wondering if anyone had figured it out already. Would love if there's a yammer developer around here.
Unfortunately at the moment we don't support a way to do this
I have done this in a xamarin.forms app in both iOS and Android environment using Jordan Hewitt's example here: https://forums.xamarin.com/discussion/48089/how-to-open-other-apps-from-xamarin-forms
The URI schema would be defined in Xamarin.forms in MainPage.xaml.cs as:
Xamarin.Forms.Device.OpenUri(new Uri("yammer://threads"));
For native iOS and Android the schema would be same: "yammer://threads"
Hope this helps.
I am developing a windows 8.1 app using javascript and html5. I want to integrate facebook login.When I searched I found the following documentations
1.https://developers.facebook.com/docs/facebook-login/login-for-windows-phone
2.https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.3
which one should I use.
I suggest you go through the first link since it mentions how to integrate facebook SDK in windows phone. The other link mentions about Facebook integration through javascript in web.
I tried the first one, I used js function in wp8
Windows.System.Launcher.launchUriAsync("fbconnect://authorize?cliend_id=My_appId&scope=basic_info&redirect_uri=msft-my_prod_id://authorize").then(function (success){
})
It works for me, If I'm already logged with facebook app, it return true, else it show me Facebook Login Page. But I don't obtain Facebook userId, i'm able only to intercept boolean value for success or not. Did you get a solution for login and obtain Facebook userId?
I found the Winjs sdk for Facebook
https://github.com/Thuzi/facebook-winjs-sdk
it works for me.
For windows phone you need to use
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAndContinue instead of Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync during the login
How to get the user mobile number using Facebook javascript SDK?
It's not possible to get the mobile number of Facebook users. There's no field in the Graph API for that.
See https://developers.facebook.com/docs/graph-api/reference/v2.0/user/#fields
I am new to the world of Social media login and to Phonegap. What I would like to do is allow for users to "Sign In" with Google+ and eventually Facebook on my phonegap app. With phonegap we use javascript for the "Smarts" behind an application. There is an option with Google+ Auth to build the Auth with javascript. Well that's great!
The problem that I am running into is that Google+ API is asking what HTTP referers can use this API. Well, there will be many different instances of the application because it will be located on peoples mobile devices.
Could I say something like "http://localhost"? Any help would be great! Thank you in advance.