Search code examples
javafacebooknativejava-6

Can I access to facebook API with native JAVA?


I want to access Facebook throught Java Native and post my wall.

But I see it on Facebook API does not allow access to native Java for this area.

(https://developers.facebook.com/docs/) This is Facebook's API Docs.

Really, I'm on Facebook that can be accessed through the Java native method?


Solution

  • Facebook API generally, and the Graph API in particular, are simple JSON/REST api based on HTTP protocol.

    So you have more options, for example:

    1. Call directly the API using the java.net.URL object
    2. Use a java client REST library like Jersey Client

    Look at this post for detailed example about Jersey.