How to retrieve raw file usin file path and share to facebook and whats app

How to retrieve raw file usin file path and share to facebook and whats app