-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Install and usage? #5
Comments
Hi @cyanlabsid,
compile 'ly.kite:facebook-photo-picker:1.2.0'
<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/fb_app_id"
tools:replace="android:value" /> <activity android:name="com.facebook.FacebookActivity"
...
android:label="@string/app_name"
tools:replace="android:label"/>
Intent intent = new Intent(activity, FacebookPhotoPickerActivity.class);
activity.startActivityForResult(intent, MY_REQUEST_CODE);
if (requestCode == MY_REQUEST_CODE) {
if (resultCode== Activity.RESULT_OK) {
Photo[] photos = FacebookPhotoPicker.getResultPhotos(data);
for (Photo photo : photos) {
URL url = photo.getFullURL());
// do something with it
}
}
} Hope this helps you and the others. What's realy stupid in my mind is that you can trigger the photo picker staticly via FacebookPhotoPicker.startPhotoPickerForResult(Fragment fragment, int activityRequestCode); In additon you would have to know that the result is passed to fragment.getActivity(). The Facebook picker is working pretty similar to the Instagram one, that I have implemented before. There is a little documentation for it so it helped me to make this work. |
Thank you it's working pretty well for me, but what the min sdk this library need? why in Kitkat OS it doesn't work? There is the error log
but work in Lollipop OS |
@cyanlabsid compile('ly.kite:facebook-photo-picker:1.2.0') {
exclude group: 'com.facebook.android', module: 'facebook-android-sdk'
} Ensure that your own facebook dependency has the same version like the photo picker (currently 4.7.0) or if functionality hasn't changed it can be higher. Hope this helps you. |
Thank you @norman-kapschefsky for your help, but it's still get the same error. do you have any recomendation for another library to image picker facebook? ^^ |
@cyanlabsid |
Hi, I'm using this library to pick images to android app from facebook. But After the login nothing show in the display. can anyone guide me how to do this properly? thanks |
@norman-kapschefsky hi, I use this libary as your usage, but i got an error ( Manifest merger failed with multiple errors) when building.How to reslove this error? |
Can you show me the Installation and the usage to use this library?
The text was updated successfully, but these errors were encountered: