Questions tagged [facebook-sdk-4.x]

Facebook sdk 4.x is latest set of API for Facebook developers. It has two branches: - Facebook C#/.Net SDK 4.0 - Facebook PHP SDK 4.0

211 questions
0
votes
1 answer

Facebook Android SDK 4.5 LikeView not working

I am trying to integrate latest facebook android sdk(v 4.5) Like button. This is what I have put in my facebook_layout.xml
0
votes
1 answer

facebook sdk v4.5.0 crash on startup only in Android less than 5.0

The app crash on startup this is the crash log: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/com.test.activities.SplashActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class…
0
votes
0 answers

Unable to get the current users profile through Facebook sdk 4.0

I have changed the Facebook sdk for older version to new version 4.x and successfully integrated the login through login manager LoginManager.getInstance().registerCallback(callbackManager, new…
0
votes
1 answer

Convert birthday to age vale in Facebook API iOS

I want to display age of user to string. I am working with Facebook API and I see only date of birthday but not age value. Is it possible to convert bithday to age? This is my code using birthday: [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" …
Luki
  • 437
  • 2
  • 6
  • 15
0
votes
0 answers

Facebook Android SDK Upgrade 3.x to 4.x

In my App i have used the Facebook SDK 3.14. Now i made an upgrade to 4.4.0 and i have to initialize the AccessToken and Profile objects for users which were logged in. if(AccessToken.getCurrentAccessToken()==null) { String tempAccessToken =…
Zenco
  • 2,963
  • 3
  • 17
  • 22
0
votes
0 answers

Restore AccessToken from my server Facebook Android SDK 4.0

Working with facebook sdk > 4.0 i'v got a problem, that i save my AccessToken but i don't get how to retrieve it or to check for availability? Facebook doc says to use Session.open(AccessToken, StatusCallback) sdk 4.0 but Session class is…
0
votes
0 answers

How to check if access token is expired

I am using the facebook sdk 4.3.0 , now i have case if user is not login (in case of my app first run or log out) it should show login activity , other wise it should show other activity . Now what I am doing is getting the info through this my…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
0
votes
1 answer

How to put facebook login button in AlertDialog

I am using Facebook sdk 4.3.0 and it is working all fine. I have made my login activity and that's really working nice. Now due to some requirements I want to show the user a alert dialog saying to please sign in. And for this I have to show the…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
0
votes
1 answer

Facebook 4.x Login SDK Not Completing Login Process

I am following this tutorial and it was working, but now when I click on the login button, I get a progress spinner that appears for a brief moment, then disappears. I have tried to debug, and I'm not even hitting this callback: private…
BlackHatSamurai
  • 23,275
  • 22
  • 95
  • 156
-1
votes
1 answer

How can i solve this Problem to build my App with Pods?

I try to build my App with Pods but it doesn´t work. I already set the variables PODS_ROOT and PODS_PODFILE_DIR_PATH also id dit run 'pod install' but it still doesn´t work. Always getting this error below do anyone have a solution for this…
leo180593
  • 19
  • 1
  • 7
-1
votes
2 answers

How to stub a Facebook's SDK access token for unit testing

I'm trying to perform some unit testing in my application and I've ran into a problem. A simple graph request demands an AccessToken object which can only be claimed by - AccessToken.getCurrentAccessToken() or getting it in an authentication…
Ofek Regev
  • 467
  • 4
  • 18
-1
votes
3 answers

Does anyone know how to get firstname, lastname, email, id, birthday, gender, hometown, age and etc from facebook sdk in android platform?

I am new for facebook sdk. Does any know how to get firstname, lastname, email, id, birthday, gender, hometown, age and etc from facebook sdk in android platform? Please show me the code? below is what I have tried callbackManager =…
freeman
  • 92
  • 11
-1
votes
1 answer

How to hide or close sending progress dialog after sharing video with ShareDialog on facebook with facebook sdk

i am using 'com.facebook.android:facebook-android-sdk:[4,5)' to share video from my android to Facebook it is posting successfully but after sharing the video,i am getting translucent screen with sending progress dialog,even after video has posted…
-1
votes
1 answer

Why does the Facebook Android SDK downloaded and included via jar show up as an unresolved reference in Android Studio

I was unable to include the Facebook Android SDK in the normal way so I downloaded a jar and added it to Android Studio. For some strange reason I get an error Unresolved reference: FacebookSdk even though I can see the class in the Project view: …
Dave Chambers
  • 2,483
  • 2
  • 32
  • 55
-1
votes
1 answer

Read facebook inbox mesaage using graph api. (Facebook SDK : 4.16.0)

I am new in using facebook api for Android. I am trying to read message from facebook using Graph Api. When I try to pass read_mailbox permission I get invalid permission error. Here is the link I tried to…
Narendra Pal
  • 6,474
  • 13
  • 49
  • 85
1 2 3
14
15