Here is my code.
Login:
`public static void login(final GDXFacebook gdxFacebook, final XFBListener listener) {
Array permissions = new Array();
gdxFacebook.signIn(SignInMode.READ, permissions, new GDXFacebookCallback() {
@Override
public void onSuccess(SignInResult result) {
post(gdxFacebook);
listener.onSuccess();
}
@Override
public void onError(GDXFacebookError error) {
// Error handling
listener.onFailed();
}
@Override
public void onCancel() {
// When the user cancels the login process
listener.onFailed();
}
@Override
public void onFail(Throwable t) {
// When the login fails
listener.onFailed();
}
});
}`
Here is my code. Login: `public static void login(final GDXFacebook gdxFacebook, final XFBListener listener) { Array permissions = new Array();
gdxFacebook.signIn(SignInMode.READ, permissions, new GDXFacebookCallback() {
@Override
public void onSuccess(SignInResult result) {
post(gdxFacebook);
listener.onSuccess();
}
`public static void post(final GDXFacebook gdxFacebook) { GDXFacebookGraphRequest request = new GDXFacebookGraphRequest().setNode("xirtamgame/feed").useCurrentAccessToken(); request.setMethod(Net.HttpMethods.POST); request.putField("link", "https://www.google.com"); request.putField("message", "message");
I got "error":{"message":"(#200) The user hasn't authorized the application to perform this action","type":"OAuthException","code":200
I want only share a link,help plz.