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 8870687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:47:55+00:00 2026-06-14T17:47:55+00:00

$.getScript(‘http://connect.facebook.net/en_US/all.js’, function(){ FB.init({ appId : ‘my app id’, status : true, // check login

  • 0
$.getScript('http://connect.facebook.net/en_US/all.js', function(){

    FB.init({
          appId  : 'my app id',           
          status : true, // check login status
          cookie : true, // enable cookies to allow the server to access the session
          xfbml  : true  // parse XFBML
    });

});

This results in an error: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

My goal is to generate an access token on my local html file. My app settings on facebook wont allow “localhost” or anything simiilar.

Is this possible at all, or do I need a local web server?

  • 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-14T17:47:56+00:00Added an answer on June 14, 2026 at 5:47 pm

    I did some more research and I would say that this is the easiest way:

    $.ajax({
    
    url: 'https://graph.facebook.com/oauth/access_token?client_id=<APPID>&client_secret=<APP SECRET>&grant_type=client_credentials',
    dataType: 'text',
    success: function(tokenstring){
    
        var token = tokenstring.split('=')[1];
    
    }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

core.js: var core = { all:{}, load: function(jsUrl) { $.ajaxStup({async, false}); $.getScript(jsUrl); }, init:
The jQuery getScript fail function is never called. See this fiddle: http://jsfiddle.net/getsetbro/8xNMs/ $.getScript(http://api.jquery.com/scripts/jquery.NO-SUCH-FILE.js).done(function() {
Tried this: $('.link').click(function(e) { $.getScript('http://www.google.com/uds/api?file=uds.js&amp;v=1.0', function() { $('body').append('<p>GOOGLE API (UDS) is loaded</p>'); }); return
jQuery's getScript function doesn't seem to support an error callback function. I can't use
$.getScript(somescript.js, function() { alert('Load Complete'); }); Once loaded, is it cached or is it
// Lightbox $('a.lightbox').click(function () { $.getScript(js/lightbox.js, function () { alert('Load Complete'); $(a.lightbox).lightbox({ 'type': 'iframe',
jQuery offers the getScript( file, callback) function that loads a script file, interprets it,
I am trying to understand what are the differences between $.getScript function in jQuery
I use getScript to load dynamically my plugin: $.getScript('js/code.photoswipe.jquery-3.0.4.min.js', function () { //do magic
I'm using getScript to fire a script when jquery has finished loading. $(document).ready(function() {

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.