Skip to main content

All Questions

0 votes
2 answers
85 views

Android facebook profle get name

I'm trying to retrive the profile name from a facebook user that has logged in/ is logged in. It only lets me retrive the name if I'm already logged in on facebook before I run my applikation ...
Amar's user avatar
  • 529
0 votes
2 answers
750 views

Android - Can't access onSuccess of callback after login with Facebook in fragment

I have successfully logged in facebook. But, I can't access token or user profile from onSuccess method of callback. I have added callbackManager.onActivityResult in onActivityResult. I can login, but ...
andika_kurniawan's user avatar
0 votes
1 answer
555 views

Error inflating Facebook Login Button.

I am learning fragments and I am by using FB Login within a fragment. But I keep getting an exception Error inflating class com.facebook.login.widget.LoginButton Error: Caused by: android.view....
Beto's user avatar
  • 796
0 votes
2 answers
758 views

107: Error inflating class com.facebook.login.widget.LoginButton

I know this is a very common question, btu I have read through all the stack overflow questions without finding an answer. I'm trying to integrate the Facebook Login Button using Facebook SDK 4.0.1 ...
Bharat Khanna's user avatar
0 votes
1 answer
269 views

loginButton.setFragment(this); crashes app

I'm trying to make an app that simply logs into facebook and then logs out. My app would compile and load however adding the line: loginButton.setFragment(this) causes a compilation which I have fixed ...
stan-sack's user avatar
0 votes
2 answers
89 views

Facebook login button in Android returns user to the same page after logging in

I currently have a Facebook login button in my main activity and want the user to view a new fragment after logging in. However, as it stands, the user gets taken back to the main activity after ...
eyes enberg's user avatar
0 votes
0 answers
543 views

Fragment not attached to Activity NewPermissionsRequest facebook

I am working on my first android app and am trying to request addtional publish_actions permissions. Following the documentation I am request them only when needed. However I am receiving this ...
tomjung's user avatar
  • 715
3 votes
2 answers
199 views

How to login Facebook using nested fragment in Android

I have nested fragment like the following. MainActivity FragmentA FragmentA1 FragmentA3 FragmentA2 FragmentB FragmentB1 I want to login facebook from FragmentA3. But can not. In FragmentA3, ...
user avatar
0 votes
1 answer
593 views

Android Facebook setFragment with a regular Fragment

Because setFragment of Facebook is working only with support.fragment, I did the following in order to overcome this when working with regular fragment: public class NativeFragmentWrapper extends ...
Amos's user avatar
  • 1,331
0 votes
2 answers
75 views

Correct way to setup onClickListener with Fragments

This is my first time working with fragments. I'm implementing a facebook login. When I add the piece of code for the fragment /* FACEBOOK FRAGMENT SETUP */ if (...
tomjung's user avatar
  • 715
0 votes
1 answer
147 views

Asynctask not working in the first run in Fragment

I'm trying to make a facebook app for my class project using facebook graph api. I have these codes but when i open it first time or log in for the first time, my asynctasks are not working but when I ...
d0tzz's user avatar
  • 25
1 vote
1 answer
1k views

setFragment in LoginButton couldn't be applied to MainFragment

I'm developing an Android Facebook login and I'm running into a problem. This is my MainFragment class: public class MainFragment extends Fragment { private static final String TAG = "...
DevelopingBeaver's user avatar
1 vote
1 answer
229 views

How can I pass data returned from Facebook when Request.callback onCompleted() method is called, to my fragment in Android?

I'm currently trying to integrate Facebook into my Android application. I've had no problems getting the app to connect and authenticate. But I'm having a little trouble understanding how I can handle ...
mal's user avatar
  • 3,192
1 vote
0 answers
505 views

Setting up a facebook login - callback cannot be resolved to a variable

I was following this tutorial: https://developers.facebook.com/docs/android/login-with-facebook/#step1 Here is the code of my Welcome Activity (Main Activity): package com.test.test; import android....
Lara's user avatar
  • 144
2 votes
2 answers
903 views

Error trying to add fragment for facebook login

https://developers.facebook.com/docs/android/login-with-facebook/#step1 I want to make a facebook login in my app. I followed this official tutorial from facebook. I replaced "extends Activity" with "...
Lara's user avatar
  • 144

15 30 50 per page