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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:13:45+00:00 2026-06-08T13:13:45+00:00

I am completely stumped by this. I have the following Facebook App Access Token

  • 0

I am completely stumped by this. I have the following Facebook App Access Token registered for my app:

|

And then I try to GET the following URL: (Fake token underneath)

 https://graph.facebook.com/<user-id>/likes?access_token=<number>|<hash>
 String accessToken = "258443224256787|dsK3fffe7g-rejponkVlfwef3GenVng6Y";

 WS.url("https://graph.facebook.com/" + socialUser.id.id + "/likes?access_token="+accessToken)

 accessToken = "258443224256787" + URLEncoder.encode("|") + "dsK3ks7g-dsK3fffe7g-rejponkVlfwef3GenVng6Y";

I get the following error message:

{"error":{"message":"An access token is required to request this 
resource.","type":"OAuthException","code":104}}

When I use it in the Graph API explorer tool however, I get no errors! I think the problem might be that I don’t know how to use the pipe symbol in my URLs (tried Googling for hours without success – attempted URLEncoder.encodre to no avail).

Help please! 🙂

(I’m using Java Play! 2)

Edit I should say that when I debug my link I get: “%7C” instead of pipe, due to the URLEncoder.

Edit 2 It also works when I post the URL directly into the browser.

Edit 3 Added URLEncoder-code

  • 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-08T13:13:47+00:00Added an answer on June 8, 2026 at 1:13 pm

    Turns out that WS.url() didn’t accept my query parameters unless I used url().setQueryParameters() which solved the problem. 🙂

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

Sidebar

Related Questions

Really stumped on this one. I have the following PHP file with a variable
I'm completely stumped. I have no clue why this isn't working and it seems
I am completely stumped on this one. I have to utilize the current code
I'm completely stumped on this one. I have three different lists that need to
I have to admit I am COMPLETELY stumped on this one. I've been scouring
This is more then likely a very simple question but I am completely stumped
I'm working on a school assignment and I've been completely stumped with this step.
I am completely stumped at the nature of this problem. We export data from
I've been staring at this one for a while and I'm completely stumped. You'll
I am completely stumped with how to use .htaccess and I have an issue

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.