You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code as below:
var sendResult = await this.instaApi.MessagingProcessor.SendDirectPhotoToRecipientsAsync(new InstaImage() { Uri= @"E:\Upload\evaluate\1111.jpeg" }, new string[] { user_pk });
It returned codes as Debug logs shown.
And also the await this.instaApi.MessagingProcessor.SendDirectPhotoAsync(image, thread_id);
The text was updated successfully, but these errors were encountered:
I've:
Issue category
Language
Usage
Operating System
Debug logs
{StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Vary: Accept-Language
Vary: Cookie
Strict-Transport-Security: max-age=31536000
Pragma: no-cache
X-Frame-Options: SAMEORIGIN
content-security-policy: report-uri https://www.instagram.com/security/csp_report/; default-src 'self' https://www.instagram.com; img-src data: blob: https://.fbcdn.net https://.instagram.com https://.cdninstagram.com https://.facebook.com https://.fbsbx.com https://.giphy.com; font-src data: https://.fbcdn.net https://.instagram.com https://.cdninstagram.com; media-src 'self' blob: https://www.instagram.com https://.cdninstagram.com https://.fbcdn.net; manifest-src 'self' https://www.instagram.com; script-src 'self' https://instagram.com https://www.instagram.com https://.www.instagram.com https://.cdninstagram.com wss://www.instagram.com https://.facebook.com https://.fbcdn.net https://.facebook.net 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' https://.www.instagram.com https://www.instagram.com 'unsafe-inline'; connect-src 'self' https://instagram.com https://www.instagram.com https://.www.instagram.com https://graph.instagram.com https://.graph.instagram.com https://i.instagram.com/graphql_www https://graphql.instagram.com https://.cdninstagram.com https://api.instagram.com https://i.instagram.com https://.i.instagram.com https://.od.instagram.com wss://www.instagram.com wss://edge-chat.instagram.com https://.facebook.com https://.fbcdn.net https://.facebook.net chrome-extension://boadgeojelhgndaghljhdicfkmllpafd blob:; worker-src 'self' blob: https://www.instagram.com; frame-src 'self' https://instagram.com https://www.instagram.com https://.instagram.com https://staticxx.facebook.com https://www.facebook.com https://web.facebook.com https://connect.facebook.net https://m.facebook.com https://*.fbsbx.com; object-src 'none'; upgrade-insecure-requests
cross-origin-embedder-policy-report-only: require-corp;report-to="coep"
report-to: {"group": "coep", "max_age": 86400, "endpoints": [{"url": "/security/coep_report/"}]},{"group": "coop", "max_age": 86400, "endpoints": [{"url": "/security/coop_report/"}]}
cross-origin-resource-policy: cross-origin
origin-trial: AuqWincgAuXeuu3KypEMnrrFEJHySaesyJS3EaIH40zvafzrU0Irhb7+5QwZpOqMZrPTjgvFl7Z5jJgy1dNAcQMAAAB6eyJvcmlnaW4iOiJodHRwczovL2luc3RhZ3JhbS5jb206NDQzIiwiZmVhdHVyZSI6IkNyb3NzT3JpZ2luT3BlbmVyUG9saWN5UmVwb3J0aW5nIiwiZXhwaXJ5IjoxNjEzNDExNjYyLCJpc1N1YmRvbWFpbiI6dHJ1ZX0=
cross-origin-opener-policy: same-origin-allow-popups;report-to="coop"
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
x-ig-push-state: c2
x-ig-cache-control: no-cache
x-aed: 75
x-ig-set-www-claim: hmac.AR3taBBu75h66mFVC-SZWDWBT-JsCYPneJMoxOat-rAHZIu3
Access-Control-Expose-Headers: X-IG-Set-WWW-Claim
x-ig-request-elapsed-time-ms: 118
x-ig-peak-time: 0
ig-set-ig-u-ig-direct-region-hint:
ig-set-ig-u-shbid: 4799,49376598603,1708559005:01f71869a3e83abd0a289a1624e5de8e9e776e0db7555eafed44d0f1bf84851a778d7dec
ig-set-ig-u-shbts: 1677023005,49376598603,1708559005:01f7c5bca89301e4934d76cba5c71c24d57a830f913e1dfcd5e2c4a65246c13bad07e52f
ig-set-ig-u-rur:
ig-set-ig-u-ds-user-id: 49376598603
x-ig-origin-region: eag
X-FB-TRIP-ID: 1679558926
X-FB-Client-IP-Forwarded: 36.65.172.42
X-FB-Server-Cluster-Forwarded: xsp1c01
Alt-Svc: h3=":443"; ma=86400
Connection: keep-alive
Cache-Control: no-store, must-revalidate, no-cache, private
Date: Tue, 21 Feb 2023 23:43:25 GMT
Content-Length: 426
Content-Language: en
Content-Type: application/json; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
}}
"{"message":"challenge_required","challenge":{"url":"https://i.instagram.com/challenge/?challenge_node_id=17926877117646604\",\"api_path\":\"/challenge/?challenge_node_id=17926877117646604\",\"hide_webview_header\":true,\"lock\":true,\"logout\":false,\"native_flow\":true,\"flow_render_type\":0,\"challenge_context\":\"{\\\"step_name\\\": \"\", \"cni\": \"17926877117646604\", \"is_stateless\": false, \"present_as_modal\": false}"},"status":"fail"}"
Describe your issue
When I run the code as below:
var sendResult = await this.instaApi.MessagingProcessor.SendDirectPhotoToRecipientsAsync(new InstaImage() { Uri= @"E:\Upload\evaluate\1111.jpeg" }, new string[] { user_pk });
It returned codes as Debug logs shown.
And also the await this.instaApi.MessagingProcessor.SendDirectPhotoAsync(image, thread_id);
The text was updated successfully, but these errors were encountered: