I want to use Google Cloud App Engine (Java) to integrate with Facebook from Server side.
I understand that the following Web SDKs are available which can be potentially used:
Javascipt SDK (https://developers.facebook.com/docs/javascript)
PHP SDK (https://developers.facebook.com/docs/reference/php)
But I can't find any native server side Java SDK for Facebook.
Or we can directly use Facebook Graph API:
https://developers.facebook.com/docs/graph-api
What would be the best way to implement this?
Further investigation on the lead provided by #mhasan, found the following third-party Java SDKs have been acknowledged (Not endorsed or recommended) by Facebook:
Java (Spring) by Spring Social
Java (Blackberry) by RIM
Kinvey by Kinvey
RestFB by Mark Allen
Related
I am new in cloud boost.
I am using cloud boost in my android application for chat feature.
We have integrated cloud boost SDK on our server.
Now I want to use cloud boost in my android app with my server URL but I am not able to init CloupApp with custom URL. I have also tried following method but it not work.
CloudSocket.init(cloudUrl);
CloudApp.init(appId, appKey);
Can someone help me with this?
The library does not support Java/Android and other languages - it only supports Javascript language.
Issue on GitHub: https://github.com/CloudBoost/JavaSDK/issues/9
I am slightly confused with the Firebase client library that is available for Java. In the documentation, it says that the library should be used on the server. Recently, I came across Google App Engine. A PaaS service that allows application code to be put in the cloud.
Could I write the server code using the Firebase client library and deploy that as application code on Google App Engine? That way my application could connect with Firebase through the App engine.
I am asking this questions from the perspective of creating a Java application; the same libraries available for Android are not available for Java desktop applications. The only library that can be used in Java is the server library.
Thank you.
That is possible with the firebase-server-sdk.
You find an example deploying a servlet to appengine and access firebase from within the servlet here: https://cloud.google.com/solutions/mobile/firebase-app-engine-android-studio
Just skip the android stuff and scroll down to MyServlet source code.
But be aware of the scaling setting you need to use firebase on app engine.
I'm trying to access a Firebase database in desktop (non-Android) Java, and can't find where to download the dedifferentiate credentials JSON to initialise the API. There's an option to get started for Android, but that requires putting in an app name and fully-qualified identifier, which isn't applicable for a desktop project. Is there another way of obtaining this file? Or is there an alternative initialisation option?
From the firebase-talk mailing list:
We currently don't have an SDK that is intended for Java desktop apps. We do have a Java server SDK, but it requires a service account which is not secure to include in a desktop app. Your options are to either use the Realtime Database's REST API or communicating with Firebase via your own custom server using the Java server SDK.
We are not actively working on building an SDK for Java desktop apps. However, if others out there would like to see this, please chime in here.
I have a Google App Engine application deployed which contains and manages user data. My users may want to share their personal data with third party sites. Think Garmin sharing running data with myfitness pal or Strava.
The google documentation is gives good examples for using endpoints with iOS, Android, and javascript based web apps. These examples use a client id but not a "client secret" and do not involve refreshing the access tokens.
I have a javascript app running on a third-party site that does one time lookups against the api well.
I’d like to create a sample server app, preferably in java, that would connect periodically using an assigned client secret and refresh access tokens.
I have found documentation for accessing Google API's at the second link below but it is not clear if "Google APIs" include Google App Engine endpoints or just the standard suite of google apis.
What is not clear to me is that at the first link the documentation suggests that a client library needs to be generated from the backend endpoint api using maven or the endpoints.sh tool. Examples are provided for iOS/Android but there is no discussion for third party access.
Does anyone know is the server access configuration I describe possible with custom endpoints? Has anyone encountered example code for a server app that uses refresh tokens against an endpoint api?
Thanks!
End Points Documentation:
https://cloud.google.com/appengine/docs/java/endpoints/auth
OAuth Documentation:
https://developers.google.com/identity/protocols/OAuth2InstalledApp
What is the best way to access Google Documents (documents, spreasheets etc from Google Apps or Gmail) using Java on Google App Engine. We are using GWT on the client side.
Thanks,
Carl
The Google Data Client for Java suppose to work on the Google App Engine.
It gives you access to must of Google Apps Services.
Google has Google Client API which probably has a better support for OAuth2, json and support for the API discovery, but still The old API should work.
Read about Migrating To Google Api Java Client this should resolve any confusion you might have.