Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Getting "context" fields requires user #212

Open
gaspardpetit opened this issue Aug 2, 2016 · 0 comments
Open

Getting "context" fields requires user #212

gaspardpetit opened this issue Aug 2, 2016 · 0 comments

Comments

@gaspardpetit
Copy link

The following code:

org.springframework.social.facebook.api.Facebook fbPlayer = new FacebookTemplate("457***|***"); // access token
User facebookProfile = fbPlayer.userOperations().getUserProfile("100010295381858");

Throws an exception "A user access token is required to request this resource."

The problem is that PROFILE_FIELDS in UserOperations.java contains "context" which cannot be obtained without a user token.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant