Coder Social home page Coder Social logo

Comments (9)

vignesh-innerglow avatar vignesh-innerglow commented on July 17, 2024

@vivekkiran are you able to run the project ? i tried and it creates lot of errors. Help me out.

from androidfbphotopicker.

vivekkiran avatar vivekkiran commented on July 17, 2024

@vignesh-innerglow I am able to run the project, first download latest Facebook SDK https://developers.facebook.com/docs/android/downloads/ Import it to your workspace and Import FBPhotoPickerLib and FBPhotoPickerTestApp, make sure that the Facebook SDK and FBPhotoPicker Project are in the same directory, then click FBPhotoPickerLib , and from menu bar select Project, Properties, Android then add Facebook SDK as library, and repeat the same procedure for FBPhotoPickerTestApp, after referencing the Facebook SDK, delete android-support-v4.jar from FBPhotoPickerTestApp and FBPhotoPickerLib because Facebook SDK already has android-support-v4.jar otherwise there will be jar mismatch or dex errors,and then go to manifest and set android:targetSdkVersion (latest one is 19) and then select the project, click Project from menu bar and Clean the project and then run/debug FBPhotoPickerTestApp as android application. The app should work fine. But there may be some issue with cover_photo, I was unable to resolve it. The Facebook SDK included in the project is very old version 3.0 (Dec 13, 2012), the latest one is 3.15 (June 12, 2014)
and there has been lot of changes in Facebook SDK since v3.0 refer to Facebook Upgrade guide and Change Log

from androidfbphotopicker.

vignesh-innerglow avatar vignesh-innerglow commented on July 17, 2024

@vivekkiran i did the same steps as you described but i think i did some mistake some where as i run the project i get jar mismatch or dex errors, that is why i asked if you were able to run the project. i will include the latest facebook sdk and follow your steps.

do you think we will be able to fetch the user_photos and populate them in a grid view using this library.?

from androidfbphotopicker.

vivekkiran avatar vivekkiran commented on July 17, 2024

@vignesh-innerglow i guess you are getting jar mismatch because of android-support-v4.jar , delete this jar from both FBPhotoPickerTestApp and FBPhotoPickerLib and try,it will work. there is mismatch because of different versions of the jar file and there is no need to include android-support-v4.jar once you add facebook library because facebook library already contains android-support-v4.jar .yes using this we will be able to fetch user_photos but there is an issue with cover_photos in this app.

from androidfbphotopicker.

vignesh-innerglow avatar vignesh-innerglow commented on July 17, 2024

@vivekkiran i did as you said and the app installed but it crashes as soon as it opens. Can you pls send me a working build i am not able to make it run and i am stuck with this for the past week. Sorry to bother you. Kindly help me out.
I get this error.
E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager
at com.facebook.internal.SessionTracker.(SessionTracker.java:76)
at com.facebook.widget.LoginButton.finishInit(LoginButton.java:615)
at com.facebook.widget.LoginButton.onFinishInflate(LoginButton.java:608)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:747)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:272)
at android.app.Activity.setContentView(Activity.java:1835)
at com.example.fbphotopickertestapp.MainActivity.onCreate(MainActivity.java:38)

from androidfbphotopicker.

vivekkiran avatar vivekkiran commented on July 17, 2024

Hi, Download this app from my repositiory this is working build, i fixed cover_photo bug also, https://github.com/vivekkiran/FacebookPhotoPicker import Facebook SDK and FBPhotoPickerTestApp and remember to keep them in the same directory and reference the Facebook SDK for FBPhotoPickerTestApp in menubar Project/Properties/Android and Change the app id to your facebook app id in res/values/strings, https://github.com/vivekkiran/FacebookPhotoPicker/blob/master/FBPhotoPickerTestApp/res/values/strings.xml app id can be obtained by creating a new app in https://developers.facebook.com/

from androidfbphotopicker.

vivekkiran avatar vivekkiran commented on July 17, 2024

https://github.com/vivekkiran/FacebookPhotoPicker

from androidfbphotopicker.

rahul0007 avatar rahul0007 commented on July 17, 2024

Getting error for cover_photo Value is null;.

from androidfbphotopicker.

rahul0007 avatar rahul0007 commented on July 17, 2024

plz solve it...

from androidfbphotopicker.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.