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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:16:05+00:00 2026-05-20T11:16:05+00:00

I am trying to add a couple to test users to an app I’m

  • 0

I am trying to add a couple to test users to an app I’m developing using google app engine and the javascript sdk. Following this link:, I tried this code:


FB.api ('/app_id/accounts/test-users', 'post', {installed:'true', permissions:'read_stream'}, function (response) {
    alert (response.id);
});

(app_id was changed to the App ID as obtained in http://www.facebook.com/developers/apps.php)

But I get a popup “undefined”. What is wrong with this code? I could not find any example for the javascript sdk.

As per the same facebook help page, response is supposed to be:


{ 
  "id": "1231....",  
   "access_token":"1223134..." , 
   "login_url":"https://www.facebook.com/platform/test_account.." 
}

BTW, if I log in as myself,


FB.api('/me', function(user) {
    welcomeMsg (user);
});

works just fine, so it’s not a problem with app activation.

  • 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-20T11:16:06+00:00Added an answer on May 20, 2026 at 11:16 am

    I don’t think it’s possible to perform this type of task using the Javascript SDK, which is intended to make calls on behalf of a user, not an app. For this type of call, it’s necessary to authenticate as the app, and for that you need the app OAuth token and secret, which aren’t available via Javascript (nor should they be, for security reasons). So the best solution here is to make this call serverside. To do so, you should follow the “App Login” instructions here to get an app access token, and then pass that token in to the /app_id/accounts/test-users API call (as the “access_token” param)

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

Sidebar

Related Questions

I am trying to add a couple of rows to my sqlite database to
I've spent last couple of hours trying to add the Memcache extension to my
Trying to add a blank sample app for a rails tutorial to GitHub, but
Trying to add email notification to my app in the cleanest way possible. When
Trying to add tests to the gobject-introspection test suite to cover more of the
I am trying to implement a test project using the Point Cloud Library and
Using javascript I'm trying to load images not on the current page (from an
I'm trying to add UUIDs to a couple of tables, but I'm not sure
I'm trying to add this iOS lib PTImageAlbumViewController to an existing project that I'm
I am trying to add an Add to Calendar link to my web app.

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.