I can't see certain GET requests from iPhone using Postman interceptor proxy.
I'm trying to see certain requests sent from an app on an iPhone in postman app. I've followed the guide on the postman website here.
This works great for POST requests
But I'm not able to see any GET requests.
I just want to check that this is normal. I did note that in the guide to using the postman built-in proxy that
Note: for the Postman native apps, request captures over HTTPS will not work if the website has HSTS enabled. Most websites have this check in place.
I'd like to know why this would block certain GET requests but allow other POST requests. Both URL endpoints are https:// if that helps.
Thanks in advance.
Related
I'm currently building out an API in Python Flask and am working on my authentication layer. Everything seems to be working aside from my request to retrieve an access token from Facebook's API.
I'm redirecting to https://graph.facebook.com/oauth/authorize after my own authorize endpoint is hit and the response is HTML. On browser, this obviously works, but since my intention is to use this API as the backend of an IOS app, I'm looking for an endpoint that returns the url, rather than the html, of the facebook login. Is there another endpoint I should be using?
Any help would be greatly appreciated.
Thanks,
Chris
Okay, nevermind, I realized that I was redirecting my API to the authorization URL when I should be returning the URL so that the user on the client side can then be redirected there.
When trying to create app requests through facbeook http graph api I'm getting the error "(#2) Failed to create any app request".
As described in the documentation (https://developers.facebook.com/docs/graph-api/reference/user/apprequests/) I'm using the URL https://graph.facebook.com/{userid}/apprequests setting in post the access token, a title and a message. I've tried different combinations of parameters just to check if I needed anything else, but just if I remove access token and/or title I get different errors.
In addition to that, if I use my own userid, instead of other userid (obviously a friend) that I want to send the request to, there's no error at all, but no request is created.
I don't think it may be related with permissions because both users (source and destination of the request) are admin, developer or tester of the app.
Thank you
Just in case anyone needs it, the problem is that user apprequests can only be created if using any facebook ui methods. That's why in this thread Apprequest of Android Facebook sdk 3.0 comment 1 advices to use webdialog instead of sending the request in code.
More on this topic, I've been researching and I found out that I started with my app really long ago (using API lower than 2.3) so I didn't need to set the category as "game" to be able to send apprequests. I updated its category and after multiple tests I've found the following scenarios:
Javascript API works correctly to send requests in my app
Graph API fails to send requests if using user auth token getting the same error as before
Graph API is able to send requests if using app auth token (from app_id + app_secret)
As far as I've read, there's no limitation in using either kind of auth tokens for apprequest calls.
In addition, my app will be running in web, desktop and mobile. The scenario in which I'm using graph API directly is desktop for obvious reasons (there's other APIs tor the other platforms). As recommended in the FB api documentation, the app secret should not be included in binary code deployed to users, so I would need to use the user auth token.
Any help would be apreciated
Thanks
Im trying to setup and webhook for facebook leads, i've followed the tutorial that is given. Everything works fine and all the verification steps through the Graph explorer are "OK". My endpoints seams to live and working.
But when i try the Lead Ads Testing Tool and make an request to send the form i get the status "404 rejected"
I have verified that the callback url is correct, both via the Graph explorer and the webinterface on developer.facebook.com under the tab "Webhooks"
I have logs on the server so i can see all types of requests done to the url, empty or not and i don't even get an request. I've tried to rule out every possible "auth" problems.
So i'm stuck guys, what is missing? What i'am doing wrong?
I'm setting up a callback web page hosted in Azure app services (asp.net / IIS), to receive callbacks from Facebook. Using a test tool on Facebook, I keep receiving HTTP code 301. In the Azure IIS logs I can indeed see the request coming in (to the correct URL, using https) and a 301 being returned. A previous call to the same page but using GET (also from Facebook, as part of their verification of the page) works just fine, and a simple POST from my own test app works as well.
It's not set up for redirection in my site, so it seems to be something on a higher level.
My questions: is there any way to see why Azure decides to return a 301, and which URL it is redirecting to which other URL? And seeing as from my own test app it works just fine, can redirection like this be set up based on content type or something like that?
I have such problem:
Previously Advanced REST API client was integrated with browser and I could send request to my app if I was logged in my app. And now it is separated and it doesn't use session from browser.
How can I use cookies/session to send requests to my app without logging in???
Install ARC cookie exchange from https://chrome.google.com/webstore/detail/arc-cookie-exchange/apcedakaoficjlofohhcmkkljehnmebp
Solved,
Against advanced Rest Api client I tried Postman, but Postman for using cookies from browser needs additional extension that called Postman Interceptor. it communicates with Postman and you can send requests.