本文整理汇总了Java中com.facebook.android.FacebookError类的典型用法代码示例。如果您正苦于以下问题:Java FacebookError类的具体用法?Java FacebookError怎么用?Java FacebookError使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FacebookError类属于com.facebook.android包,在下文中一共展示了FacebookError类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError e, final Object state) {
Log.e("Facebook", e.getMessage());
e.printStackTrace();
}
示例2: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError error) {
SessionEvents.onLoginError(error.getMessage(),SessionListenerType.FACEBOOK_SESSION_LISTENER);
}
示例3: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError e) {
Log.d(TAG, "facebook error");
this.fba.cb.error("Facebook error: " + e.getMessage());
}
示例4: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError error) {
showToast("Authentication with Facebook failed!");
}
示例5: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
@Override
public void onFacebookError(FacebookError error) {
SessionEvents.onLoginError(error.getMessage());
}
示例6: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError e) {
//ALog.m();
showErrorAndFinish();
}
示例7: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError error) {
//ALog.m();
showErrorAndFinish();
}
示例8: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
@Override
public void onFacebookError(FacebookError e, final Object state) {
Log.e("Facebook", e.getMessage());
e.printStackTrace();
}
示例9: onCreate
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
String[] permissions = {"offline_access", "read_stream", "user_events", "friends_events", "friends_status", "user_status", "friends_photos", "user_photos", "friends_about_me", "friends_website", "email", "friends_birthday", "friends_location"};
FacebookUtil.facebook.authorize(AuthorizationActivity.this, permissions, Facebook.FORCE_DIALOG_AUTH, new DialogListener() {
@Override
public void onComplete(Bundle values) {
FacebookUtil.accessToken = FacebookUtil.facebook.getAccessToken();
Log.i("Expires", String.valueOf(FacebookUtil.facebook.getAccessExpires()));;
AccountManager am = AccountManager.get(AuthorizationActivity.this);
Account account = am.getAccountsByType(AuthorizationActivity.this.getString(R.string.ACCOUNT_TYPE))[0];
am.setPassword(account, FacebookUtil.facebook.getAccessToken());
SharedPreferences prefs = AuthorizationActivity.this.getSharedPreferences(AuthorizationActivity.this.getPackageName() + "_preferences", MODE_MULTI_PROCESS);
SharedPreferences.Editor editor = prefs.edit();
editor.putInt("permission_level", FacebookUtil.PERMISSION_LEVEL);
editor.putLong("access_expires", FacebookUtil.facebook.getAccessExpires());
editor.commit();
ContentResolver.requestSync(account, ContactsContract.AUTHORITY, new Bundle());
ContentResolver.requestSync(account, CalendarContract.AUTHORITY, new Bundle());
// Log.i(TAG, ContentResolver.);
//Log.i(TAG, "Calendar :" + ContentResolver.isSyncActive(account, CalendarContract.AUTHORITY));
// Log.i(TAG, "Contacts :" + ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY));
FacebookUtil.isExtendingToken = false;
AuthorizationActivity.this.finish();
}
@Override
public void onFacebookError(FacebookError error) {
Log.i(TAG, "fberror");
AuthorizationActivity.this.finish();
}
@Override
public void onError(DialogError e) {
Log.i(TAG, "error");
AuthorizationActivity.this.finish();
}
@Override
public void onCancel() {
Log.i(TAG, "cancel");
AuthorizationActivity.this.finish();
}
});
}
示例10: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
@Override
public void onFacebookError(FacebookError e) {
Log.e(TAG, e.toString());
}
示例11: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError e) {
e.printStackTrace();
}
示例12: onFacebookError
import com.facebook.android.FacebookError; //导入依赖的package包/类
public void onFacebookError(FacebookError e) {
Log.d(TAG, "facebook error");
this.fba.error("Facebook error: " + e.getMessage(), callbackId);
}