Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making Facebook graph API calls from Firebase Cloud Functions

I have an Android app using Cloud Firestore (Blaze Plan). By calling Firebase Call functions from the Android app I can easily send text from the client and receive answers from the server.

According to the Facebook docs regarding Access Tokens, it is possible to get information from the Facebook Graph API by using an App Access Token, without requiring the user to be logged to his Facebook account (if any).

Is it possible to make requests to the Facebook Graph API from a Firebase cloud function (using JS)?

like image 200
nibbana Avatar asked Jul 24 '26 22:07

nibbana


1 Answers

Yes, you can make requests to the Facebook graph API from a Firebase function. There are very few examples, but a good one may be this (you can find the code here), and this has been explored in other threads like this one.

Hope you find this helpful.

like image 159
rsalinas Avatar answered Jul 27 '26 11:07

rsalinas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!