For integrating with Google analytics API you can make use of native connector that is available in IICS.For more information check the below KB article,
For Facebook we don't have native connector available, if its REST APIs are exposed then you can make use REST V2 connection in IICS to integrate with Facebook.
Rest v2 connector guide:
1 of 1 people found this helpful
Before trying the REST V2 please check the behavior of the API in any third party application like postman or SOAP UI.
Then you can implement the same either using REST V2 connector for REST APIs or webservice consumer connector for SOAP APIs.
You can also consider the CAI (Application integration ) where you can get templates: