How can facebook application integrate with iPhone/Android application? - android

If I have made a Facebook Application with php, can I integrate it with iPhone/Android or cross platform application so that I don't need to build another server/database and native code?

You can create a basic web service for your php application if you need it to communicate with a native-code app on Android or iOS. You should consider making a mobile web app on Facebook if you don't want to write native code. See https://developers.facebook.com/docs/guides/mobile/ for details on getting started.

Related

Tutorials for Ionic Android authenticated with Azure AD

Hi I am trying to build an app with
ionic5
Angular8
Capasitor
The webapp logs in fine. I used the example at https://github.com/AzureAD/microsoft-authentication-library-for-js.git but I can't get the android app to authenticate with Azure AD. On click of login it opens up a browser tab with a URL but the screen is blank.I was hoping to get some code examples for authentication.
In Cordova, Ionic and most of other hybrid mobile app development frameworks does not have most plugins to interact with the library needs to communicate with the native device constructs . Msal.js is designed to support authentication flows only for Single Page Applications and JS in web apps.
​
For supporting ASP.NET app authentication please look at Msal .Net. you could also move to Xamarin if you would really want to use MSAL. You could port your HTML app from cordova, remove all cordova plugins and references, and use a Hybrid Webview within Xamarin to achieve the same result.
​
​
​
We used https://github.com/moberwasserlechner/capacitor-oauth2. It works well for OAuth2.0 and OIDC with PKCE for web and mobile. We tested it for Azure AD and Okta.

Communication between a web application and an android application

I have a web application built on java and an android application. Both are deployed on different servers. How can i send request from android application to web application? Also, how can i send corresponding response from the web application to android application?
use REST api's (in JSON format).
This can be done with the help of web API's . You have to create webApi's on your server and, You can use AsyncTask in your android application to communicate with those web Api's.

How to send message on Facebook in android without the native app installed

I need to send a message to Facebook friends using both native installed app or webview (Dialog).
I have tried using FacebookDialog.MessageDialogBuilder but it needs the native messenger app to be installed on device .
What is the best way to achieve both messaging with and without native Facebook app. Thanks.

Android App for Rails App storing Sessions/Cookie

I am new to both Android and Rails. I built a simple Rails app to log in to post comments and leave replies to others' comments as well. I am trying to see how to build a native Android app to respond to this Rails app and have come across a question with sessions/cookie.
In order for me to build a native android app that can allow a user to log in and browse through the rails app, do I have to write a code that receives cookie from the rails app and store it in android sqlite database? Thanks
Are you trying to load a view in HTML (an embedded browser), or render a view on the device using the native controls? If you're doing the former, surely Android already handles all this for you, just like a WebView in an iPhone app does?
If you're doing the latter, you should build an API that uses something like OAuth for authentication, rather than maintaining a session cookie. This approach means that you store a pair of (revokable) OAuth credentials on the device and that you don't need to work with the user's username/password.
I'm not sure on what your end goal is here.

Access the GPS of the Android mobile in an web application, while browsing that app from that Android mobile

I want to develop a web application in ASP.NET and C# or in JavaScript that would access the GPS of the Android mobile, when the web application is browsed from that Android mobile.
Could that be done?
You can try to use in-browser geolocation features. See https://developer.mozilla.org/en/using_geolocation
Also you can user addJavascriptInterface to forward some SDK methods to Javascript side of your web application (see http://developer.android.com/guide/webapps/webview.html) and use WebView.loadUrl('javascript:...'); to interact with WebApp side from SDK side.

Categories

Resources