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:
warren powers
2011-02-06 23:09:35 +00:00
parent 8d56ea8776
commit 414f1a18bf
4 changed files with 100 additions and 15 deletions

View File

@@ -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);
}
}