Coder Social home page Coder Social logo

Comments (8)

hehan-wang avatar hehan-wang commented on April 19, 2024 2

https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
This doc may help you~

from facebook-java-business-sdk.

JiamingFB avatar JiamingFB commented on April 19, 2024 1

For now, you can modify the APIRequest.java file and add Proxy as argument to url.openConnection(). https://docs.oracle.com/javase/7/docs/api/java/net/URL.html#openConnection(java.net.Proxy)

I'm also working on decoupling network from other logic, so that you can customize it for your use case. The change will come with next version.

from facebook-java-business-sdk.

JiamingFB avatar JiamingFB commented on April 19, 2024 1

I have applied a temp fix to unblock development in IDE. You can pull the latest code. Meanwhile i'll try to figure out if there is a better way of resolving the issue. Thanks!

from facebook-java-business-sdk.

faisalbasra avatar faisalbasra commented on April 19, 2024 1

Jiaming, can you add example how to set proxy with NetworkCustomizationExample.java because I can't find a way for adding proxy.

from facebook-java-business-sdk.

bsheikh avatar bsheikh commented on April 19, 2024 1

Can you elaborate on how to set the proxy? Looking through the APIContext, I don't see an option where the proxy can be added

from facebook-java-business-sdk.

faisalbasra avatar faisalbasra commented on April 19, 2024

Alright. I cloned and setup project in eclipse/inteliJ but getting errors "incompatible types" for many classes. Can you tell how I can checkout/setup sdk project. Thanks

from facebook-java-business-sdk.

JiamingFB avatar JiamingFB commented on April 19, 2024

Hi, the source code can still be compiled by apache maven. You can install by following instructions on https://maven.apache.org/install.html

"incompatible types" is an issue that I'm working on right now.
It's due to Java's type erasure implementation of generic and some compiler might throw compilation errors. After type erasure, the parseResponse() function of APINode has the same signature as parseResponse() in subclasses, however List is not a super class of List<[sub class]>.

from facebook-java-business-sdk.

JiamingFB avatar JiamingFB commented on April 19, 2024

The customization of sending GET/POST/DELETE requests is added in latest version, which can be used to change your network proxy. You can refer to example/NetworkCustomizationExample.java.

from facebook-java-business-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.