changed postToWall() to postWall() in FacebookAuth.java.
created method postToWall(). this method should post without user interaction in FacebookAuth.java i splite the init() method into two. authorize() and logout(). created postToWallDialog() in FacebookAuth.java to display a dialog when posting to wall. created a custom exception called SessionNotValidException to be thrown when facebook hates us t seems the facebook sdk is not saving an access token when trying to make a direct facebook graph request. it does save the access token when calling a dialog but prompts for credentials. i believe the authorization process is failing. not sure why. still researching.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.TwentyCodes.android.Facebook;
|
||||
|
||||
import android.accounts.AccountsException;
|
||||
|
||||
public class SessionNotValidException extends AccountsException {
|
||||
|
||||
/**
|
||||
* generated id
|
||||
*/
|
||||
private static final long serialVersionUID = 624797017013181185L;
|
||||
|
||||
public SessionNotValidException(String message) {
|
||||
new AccountsException(message);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user