Does the graph api not have a logout function? - api

Seems like I should be able to log people out of my app using the graph api. Is that not possible?
Use case: wife logs in with facebook. Does some stuff. I want to log her out and log in as me so I can so some of my own stuff.
I figured that since I was using the graph api to login, I'd be able to logout as well. What am I missing here? This one should be obvious, right? Wasted a bunch of time looking for the answer.....

You can do logout thing also.just refer this www.developors.facebook.com and after login search for graph api samples.they have given some samples on graph.there you will get logout.

Related

How Can I login Twitch via Selenium

I am trying twitch bot like a stay hydrated bot but Twitch login system have an google captcha and my bot can't login twitch I tried manually login but even i choose pictures correctly google captcha say "it was wrong try again"
Well, i think you're going to have trouble making a robot do something you can't, i'm guaranteeing the fact you cannot get past a reCaptcha is most likely user error.
Twitch Developer Documentation
You're not going to get past Google Captcha with an automation script as they're designed to stop exactly that. Also it's a really crummy way of creating a view bot, im assuming you actually are trying to do that, because if you were actually trying to make a chatbox, you'd know that twitch have things built in to support things like this, so they don't have to try and get around a reCaptcha.

I'm trying to use Instagram API

I'm using default Instagram API, but when I try to fetch comments on posts, I'm getting a response with data empty, even when I know that there are comments on the post.
https://www.instagram.com/developer/endpoints/comments/
So when I tried to report it, it told me to migrate to Instagram Graph API. I searched, its look it's for personal use for business, I was building a raffle website helper, randomly pick a winner from a comment, and this broke my project.
Edit 1
So I'm confused because when I access Instagram Developer website says to gonna to new Instagram Graph API, but here, I got a message that it's just for business accounts, but I already have registered my app with "facebook login" like the links you have sent to me
See demo what I'm building: https://youtu.be/DmVN5t0dRaY
The problem: https://imgur.com/a/YHC5lZE
This is deprecated by Instagram. It's not really telling you to use the Graph API, it's saying that this is the way they are going and the Graph API is intended for business that want to maintain their own page and interact more successfully with Instagram users.
Instagram still offers an endpoint
GET /users/self/media/recent
That should suit your needs.

direct message sync issue with twitter API

I am using the twitter api to get all direct messages
while testing I tried to delete a message from the twitter website and then tried to reload my app's direct message page (get via api) - the dm I deleted was still showing in my app but it wasn't on the account I was using on the website.
I'm not sure whats going on here, any help is appreciated
You usually should give a second after an update/delete operation on Twitter. If you do, I would say that something is going wrong with your code.

How can I extract data behind a login page using import.io

I need to crawl some data that sits behind a login page. To be able to scrap it I need a tool that is able to login and then crawl the pages behind it. Is it possible to do this behind import.io?
Short version: yes, it is.
Longer version:
There are at least two ways, both require you to sign up and download the desktop app (all free)
Extractor version (simpler):
Point the browser to the page where the login is. Login normally, then train your API to extract the data you need. The downside of using this method is that it will only work as long as you are logged in. If you want import.io to login for you you'll need the..
Authenticated version:
As above, but create an authenticated API. This will record for login procedure and execute it for you every time you execute the API
Since the chosen answer doesn't work anymore :( I recommend Cloudscrape. You will get a free trial with 20 hours of crawling and/or scraping if you sign up. For data behind a login you will need a scraper.
Handy tutorials
Tutorial for logging in with scraper.
Tutorial for pagination.

Regarding Facebook Registation/Login on website

Is it possible to have the user "like" your page during the registration process using the Facebook Registration/log in function on my website. I know you can have custom fields, but I don't see anything that talks about this. Please tell me where I can find this information. I don't want to be repetitive on my website by having them do this twice.
Authenticating an application is not the same as liking an application. So they are two distinct things. You can create something called a fan-gate to prevent the user from seeing the good stuff if they don't like your app. Google fan-gate and you will see some examples of how to implement.