Can Google Cloud Messaging work with Facebook?

I am wondering if it is possible to make the Facebook application send a message through the GCM service to my Android application updates about new messages / messages / contacts, etc.? I'm pretty sure something similar is possible for Google+, and I also noticed that the Facebooks API message structure is very similar (or identical) to GCM messages. That is why I think it should be possible.

In other words: is it possible for the Facebook application to act as a server that stores device identifiers and sends messages about some changes through Google Cloud Messaging?

+7
source share
1 answer

You will need to give up some kind of middleware to interact with Facebook and the Google APIs - and this is definitely possible.

The Facebook API offers the ability to subscribe to events (in real time). There are only a few events that you can subscribe to, and everything is outlined here and.

In addition, you can take a long survey for data that was not discovered through their real-time API. Just think about API restrictions, etc. Before you act.

Keep in mind that you need to create a Facebook application, and your users will need to authenticate the Facebook application so that you have information about any information that you are trying to get. Sames is sent to Google.

+2
source

All Articles