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

  • Home
  • SEARCH
  • 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 6695147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:11:12+00:00 2026-05-26T06:11:12+00:00

I have made a custom ajax script to parse the JSON returned from the

  • 0

I have made a custom ajax script to parse the JSON returned from the facebook graph API feed.

I have come to terms with the fact that the access token expires, so in order to get another one I can make a request to

https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=APP_ID&client_secret=APP_SECURITY 

where APP_ID is the app id and APP_SECURITY is the app security values registered with my facebook app development account.

However I’m worried, because I’m making these requests via ajax, therefore anybody with basic chrome/firebug knowledge could access my app_id, app_security and access_token variables (from now on known as ‘The Variables’) held within my javascript file.

I am unsure as to what users can do this this kind of information?

Does the access token provide purely a read-only JSON output of my facebook page? Or can this information be used for more malicious purposes?

Now: before anybody replies saying that I should use php to get fetch the JSON and parse etc… I cannot, because the customer requirement is to use ajax, for the obvious asynchronous benefits.

If the variables pose no threat to my facebook account and can be only used for read only purposes, then I’ll get on with my programming!

If however they must be kept secure… How can I securely pass the variables to javascript in order to keep the variable hidden?

PS. I already have pre-written php scripts to attain the variables. Just after a method to keep them secure when passing to the javascript (if necessary)

Thanks

Alex

  • 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-05-26T06:11:13+00:00Added an answer on May 26, 2026 at 6:11 am

    As Commented, Never Display APP_ID and APP_SECRET publicly.

    Read This. You will find out a way to automatically find your access token using php.

    Using this php file, make an ajax call to it, and it will return your new access token.

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

Sidebar

Related Questions

I made a custom handler that derives from MvcHandler. I have my routes using
Coming from this question , I have a wxComboCtrl with a custom popup made
I have a custom module I made for Magento. From the admin, there is
I have made a custom sort of wrapper for the JQuery's Ajax function and
I have made a custom textbox that inherits from textbox. using System.Drawing; using System;
I have made a custom UserControl i Vb.net (windows application). How can I add
I have made a custom formwizard and incorporated it into my admin interface. Basically
Here's what I have: Custom-made C# CMS where the content is stored in a
I have a custom-made view that extends the View class. I would like 2
I have a custom module I made to show featured products on the homepage.

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.