I have an app for my University and there i have integrated Facebook SDK so that students can post in Facebook.
Recently i decided to make some more tests because of the new SDK that Facebook released. What i found it was that after the Custom Dialog by Facebook Sdk that appears and gives the user infos about the permissions needed, nothing happens.
That pushed me to search the problem deeper. I opened an Emulator and checked it too, after some errors and minutes i managed to make the SSO work. The same code was supposed to work on my device also, but again the problem described above was happening.
Although i had no luck with it. Then it came to my mind to delete the Facebook app from my Phone and try my app again. The SSO worked fine as in the emulator this time.
So i got stucked with a problem and a result after searching. I am completely sure that there is a problem between the authorization when having the Facebook app installed and my app, but i cant find what.
If anyone else has experienced the same problem please share your thoughts and if anyone knows any solution i would be greatfull!
P.S.: Google didn't help me at all. You are my last chance.
My way to connect with Facebook:
Session session = Session.openActiveSession(act, true,
new StatusCallback() {
public void call(final Session session, SessionState state,
Exception exception) {
if (session.isOpened()) {
Log.d("Session is:", " opened");
Request.executeMeRequestAsync(session,
new Request.GraphUserCallback() {
public void onCompleted(GraphUser user,
Response response) {
if (user != null) {
//my code goes here
}
}
});
}
}
});