Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7935451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:55:33+00:00 2026-06-03T21:55:33+00:00

I am using the Facebook API in a C++ application with libcurl . Logging

  • 0

I am using the Facebook API in a C++ application with libcurl.
Logging in works good, I can retrieve some user information after the user has registered my application.
The problem is, when I want to log the user out via

https://www.facebook.com/logout.php?access_token=RETRIEVED_TOKEN&confirm=1&next=http://www.google.com ,
there are still remaining active sessions in my account settings (security).

I don’t want these sessions to remain as the logout should clean these.
How can I smoothly clean those active sessions when logging out?
Do I have to add the APP_ID to the URL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:55:35+00:00Added an answer on June 3, 2026 at 9:55 pm

    I found out what was missing in my code: The lib that was encapsulating libcurl to perform requests on facebook wasn’t cleaning up properly.

    So the fix was to do curl_easy_cleanup() on my curl handle in the destructor of my session object. Now there are no active sessions on facebook anymore.

    While debugging, I found another error in my code concerning curl: If you want to do curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, buf) you MAY NOT delete after the function call as curl holds the buffer.
    Furthermore, I don’t have any memory leaks.
    Thanks for your help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to retrieve information through Facebook graph api, using the below code
I'm using the facebook JS API to get some information from users when signing
Good day! I am using Facebook graph API to retrieve Facebook users Profile feed
I have a Facebook desktop application and am using the Graph API . I
I'm writing a facebook desktop application for the first time using the PyFacebook api.
how to develop new facebook application (login , add photos ) using the api
I'm using the Facebook API and the class produces this object. object(User)#4 (5) {
In my application I try to get list of friends using Facebook Api method
Can I access My own Database(on my server) using Facebook API's or its just
I need to retrieve the number of fans for a given Facebook application. Using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.