skip to Main Content

The provided image file is invalid. Please check your image path again. Facebook Graph Api error

I am trying to upload image to Facebook graph api with Http Client of Laravel. But I am getting the error mentioned before. $ad_account_id = env("AD_ACCOUNT_ID"); $access_token = env("ACCESS_TOKEN"); $image = $request->file('image'); $response = Http::asForm() ->withHeaders(['Content-Type: multipart/form-data']) ->post('https://graph.facebook.com/v14.0/act_' . $ad_account_id…

VIEW QUESTION

Connect to Mysql database from another docker application

I have 2 Laravel applications running in docker environment. The first application docker-compose file (which called mobile app) version: '3.8' networks: laravel: services: nginx: build: context: . dockerfile: dockers/nginx/Dockerfile container_name: mobile-server-nginx ports: - "8188:80" volumes: - ./:/var/www/ depends_on: - php…

VIEW QUESTION
Back To Top
Search