I am working on QuickBlox SDK , Using this SDK I am trying to login on Facebook . I have visited some helpfull links on stackoverflow like this , but it didn't help me . Here is my code snippet .
QBAuth.createSession(new QBEntityCallbackImpl<QBSession>() {
@Override
public void onSuccess(QBSession session, Bundle params) {
String token = session.getToken();
QBUsers.signInUsingSocialProvider(QBProvider.FACEBOOK, token, null, new QBEntityCallbackImpl<QBUser>() {
@Override
public void onSuccess(QBUser user, Bundle args) {
Toast.makeText(getApplicationContext() , "Success" ,Toast.LENGTH_SHORT).show();
}
@Override
public void onError(List<String> errors) {
Toast.makeText(getApplicationContext() , "onError" ,Toast.LENGTH_SHORT).show();
}
});
}
@Override
public void onError(List<String> errors) {
}
});
LogCat Details :
Access-Control-Allow-Origin=*
Cache-Control=no-cache
Connection=keep-alive
Content-Length=38
Content-Type=application/json; charset=utf-8
Date=Sat, 16 Jan 2016 08:14:28 GMT
QB-Token-ExpirationDate=2016-01-16 10:14:03 UTC
QuickBlox-REST-API-Version=0.1.1
Server=nginx/1.8.0
Status=422 Unprocessable Entity
X-Rack-Cache=invalidate, pass
X-Request-Id=c350c40caa43dae4fa962da7f2e8e389
X-Runtime=0.132058
X-UA-Compatible=IE=Edge,chrome=1
BODY
'{"errors":["Bad Authentication data"]}'